This is information I've never heard before. Thank you very much for your generosity. Let's unwind in this entertaining and hard 1v1 lol battle!
Great article! I didn't know about ConfigCat. Looks like a cool service.
Two suggestions. Read the API key from the runtime environment. It shouldn't be in the code. kit.svelte.dev/docs/modules
I think as currently written the user could briefly see the "oops" message before the feature flag is loaded. Does creating the configCat client and reading the feature flag need to be in onMount? Realistically, the client would be shared among components, so probably created in a separate file.
I once had need for this feature flagging thing and ended up using environment variables to check if a feature is available or not, and this somehow required redeployment. This approach is way better. I am definitely using this next time. Thanks
Love how straightforward this is. ✌ Really cool stuff.
Eliezera Morar
Mmora5845@
I appreciate the straightforward nature of this. It's really impressive.