Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Flickering UI. Methods of telling if flags are ready not present in React Native SDK. #267

@ejjsharpe

Description

@ejjsharpe

Is this a support request?
I am having a flickering issue on the React Native SDK. I am initialising the client as early as I possibly can in the journey but the issue persists.

I have followed this guide:
https://docs.launchdarkly.com/sdk/client-side/javascript/default-values#block-drawing-the-page-until-the-flag-values-are-available

However, it seems that none of the methods are suggested are actually present in the React Native SDK. This includes the 'ready' event from the on method, the waitUntilReady() and the waitForInitialization() methods.

Describe the bug
A flag that is early in the apps flow will give me the fallback before the it has retrieved the flags.

To reproduce
Have a flag that is fetched near the SDK initialisation.

Expected behavior
The correct flag is received or a loading state, isReady state or some other way of knowing the flags are ready is available.

Logs
If applicable, add any log output related to your problem.

SDK version
10.0.5

OS/platform
iOS and Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions