Closed paulmbw closed 1 year ago
FYI - I got with @paulmbw and got him setup, His "Expose Flag to Client Side" wasnt set in the UI. Also took him through how to use asyncWithLDProvider
as an alternative setup. I believe hes going to close this out shortly...
Correct! Thanks for the help @codyde much appreciated!
You can enable Make available for Client-side
on the Account Settings page (under the flag defaults tab)
Thank you @codyde for your help, and thank you @paulmbw for leaving a note for people who may stumble into this issue in the future.
I'm setting up LaunchDarkly in a React project with the guide. My setup us as follows:
launchdarkly-react-client-sdk
version3.0.3
index.tsx:
I have a component wrapped with the HOC
withLDConsumer()(Component);
and I'm trying to accessflags
when passed as a prop, but the prop is empty. Upon inspecting the console logs, I'm getting the following errors:I'm also getting this warning:
Finally, this is what the dashboard shows unsurprisingly:
Where have I gone wrong? Any help would be greatly appreciated!