You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing some intermittent console errors on my app, which is currently using the 4.0.2 version of flagsmith lib.
The error is shown below:
It is not something that really impacts the experience because the flags are correctly loaded, but is annoying because it is creating many error logs on our front-end monitoring service.
When I change the identity of the user (using flagsmith.identify method) more than once in a short time, the console error appears. Note that when I change the identity slowly, it doesn't happen. At first, I thought that was something related to the cacheFlags parameter, but it happens even when it is disabled.
I've tested with React 17 and 18 using FlagsmithProvider, and with both versions, it happens.
If you need more information, please let me know.
Thanks!
The text was updated successfully, but these errors were encountered:
This occurred when the SDK gets a response from an identity that does not match the current. You're correct that it doesn't affect the correct flags loading.
The following PR will resolve this. In the meantime, 4.0.3-beta-1 resolves this too if you'd like to try it out. Thanks again!
This occurred when the SDK gets a response from an identity that does not match the current. You're correct that it doesn't affect the correct flags loading.
The following PR will resolve this. In the meantime, 4.0.3-beta-1 resolves this too if you'd like to try it out. Thanks again!
Hello,
I'm experiencing some intermittent console errors on my app, which is currently using the 4.0.2 version of
flagsmith
lib.The error is shown below:
It is not something that really impacts the experience because the flags are correctly loaded, but is annoying because it is creating many error logs on our front-end monitoring service.
I reproduced the issue in a stackblitz app here: https://stackblitz.com/edit/stackblitz-starters-t4htj6?file=src%2FApp.tsx
And recorded a video with this behavior:
Screencast.from.03-07-2024.14.19.15.webm
When I change the identity of the user (using
flagsmith.identify
method) more than once in a short time, the console error appears. Note that when I change the identity slowly, it doesn't happen. At first, I thought that was something related to thecacheFlags
parameter, but it happens even when it is disabled.I've tested with React 17 and 18 using FlagsmithProvider, and with both versions, it happens.
If you need more information, please let me know.
Thanks!
The text was updated successfully, but these errors were encountered: