TrueCar / react-launch-darkly

Simple component helpers to support LaunchDarkly in your React app.
MIT License
76 stars 20 forks source link

Gracefully handle uninitialized Launch Darkly and failed initialization #62

Open peterbee opened 6 years ago

peterbee commented 6 years ago

In order to decouple A/B tested components from <LaunchDarkly> initialization, it would be great to have <FeatureFlag> gracefully handle uninitialized LD. (It would log a warning, of course.)

Similarly, if <LaunchDarkly> does not initialize correctly (e.g., with a connection error or account error), it makes sense to log a warning and not crash the application.

jacobmoretti commented 6 years ago

Hi @peterbee, those are some good suggestions! Will definitely make an issue and prioritize this one. Thanks for the feedback 🍻