Comments (3)
Hey @eddiejaoude - thanks for figuring this out! If you have some time to add to the docs that would be much appreciated 👍
from flagsmith-js-client.
Dan from the EddieHub community found the issue, the init
needs to be wrapped in a try/catch so that the defaults are used.
Here are his changes
https://github.com/EddieHubCommunity/HealthCheck/pull/26/files#diff-6b595e154402ce55eda1c06e86c85ba6ad056332cfacf435af2e92e10e66abe9R14-R22
Let me know if you would like the docs updated to reflect this or otherwise just close this issue.
from flagsmith-js-client.
Thanks for merging
from flagsmith-js-client.
Related Issues (20)
- Caching with multiple instance doesn't work HOT 6
- Typing issue in react.tsx: 'flagsmith' is possibly 'null' HOT 3
- useFlags() race condition HOT 8
- Different environments not working HOT 5
- Localstorage cache is not being wiped out in some edge cases HOT 3
- Support `getValue` fallback without `json` flag HOT 2
- useFlags not updating values in react18/Nextjs App Router HOT 1
- 3.23.0 seems to have broken something HOT 4
- Intermittent Flakiness in Feature Flags on Safari/MacOS HOT 2
- Flags are null when the cacheFlags option is true HOT 3
- Typescript compiler errror `Cannot find name 'F'.` when compiling flagsmith in Angular project HOT 3
- Bundle ES(flagsmith-es) and combine with standard CJS module (flagsmith)
- Identifier/trait confusion when using `cacheOptions: { skipAPI: true } ` HOT 3
- Add a devtools option HOT 1
- Uncaught (in promise) Error: Cannot read properties of undefined (reading 'flags') HOT 4
- Support transient identities and traits
- react: possible race condition between init and identify HOT 2
- Failed to parse source map from '****/angular-fetch.ts' file: Error: ENOENT: no such file or directory, open '/***/angular-fetch.ts' HOT 3
- When `cacheFlags` is enabled, the cached `traits` value is not updated even when new values are passed to `init` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flagsmith-js-client.