This is a copy from our internal usage of the FeatureFlag component within one of consumer apps. We'll need to make some changes to ensure this component stays generic:
Relies on cookies-js library, needed in our specific case to read cookie values to determine a user's key. This may need to be revisited in our usage as well.
Proper port over of lib/launchDarkly to setup the launch darkly client. In its current state, its tightly coupled to the way we have our consumer gluestick app setup.
Refactor _checkFeatureFlag() to build out the user key in a more dynamic fashion.
This is a copy from our internal usage of the FeatureFlag component within one of consumer apps. We'll need to make some changes to ensure this component stays generic:
cookies-js
library, needed in our specific case to read cookie values to determine a user's key. This may need to be revisited in our usage as well.lib/launchDarkly
to setup the launch darkly client. In its current state, its tightly coupled to the way we have our consumer gluestick app setup._checkFeatureFlag()
to build out the user key in a more dynamic fashion.