Change a flag in the LaunchDarkly dashboard and see the app rerender despite the streaming setting. You can easily check this by console logging out useFlags() in a component and see it log out with the updated values upon changing a flag.
Expected behavior
I expect the option streaming: false to turn off live flag updates per JS SDK docs.
Logs
N/A
SDK version
2.24.0
Language version, developer tools
node v14.15.0, Chrome 97.0.4692.99
OS/platform
macOS Monterey 12.1
Additional context
Initial hunch makes me think we should be checking to see if streaming is enabled here before running subscribeToChanges.
Describe the bug Based on the docs here:
I should be able to pass
streaming: false
in the options field to avoid rerendering upon new updates.To reproduce Steps to reproduce the behavior.
withLDProvider
. I imagine this behavior may be present with other methods of initializing as well.streaming: false
set in options object.useFlags()
in a component and see it log out with the updated values upon changing a flag.Expected behavior I expect the option
streaming: false
to turn off live flag updates per JS SDK docs.Logs N/A
SDK version 2.24.0
Language version, developer tools node v14.15.0, Chrome 97.0.4692.99
OS/platform macOS Monterey 12.1
Additional context Initial hunch makes me think we should be checking to see if streaming is enabled here before running
subscribeToChanges
.