react-native-client-sdk icon indicating copy to clipboard operation
react-native-client-sdk copied to clipboard

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

Open ejjsharpe opened this issue 1 year ago • 0 comments

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

ejjsharpe avatar Jul 23 '24 11:07 ejjsharpe