LaunchDarkly's js client on('ready', () => {}) function seems to only fire upon initialization of the client and will not re-fire for subsequent calls. This is problematic for the FeatureFlagRenderer component since it will call it each time it is rendered.
Solution
Keep track of the state of the client and queue up any events that need to fire. Longterm, we need to use redux or something to manage state better.
Problem
LaunchDarkly's js client
on('ready', () => {})
function seems to only fire upon initialization of the client and will not re-fire for subsequent calls. This is problematic for theFeatureFlagRenderer
component since it will call it each time it is rendered.Solution
Keep track of the state of the client and queue up any events that need to fire. Longterm, we need to use redux or something to manage state better.