Closed pedroalves0 closed 6 days ago
Hi @pedroalves0, we’ll take a look and get back to you as soon as possible.
Hi @novakzaballa do you have an update for us on this? Should we be using the SDK differently?
I'm sorry for the delay in responding. We confirmed this is an issue and will try to resolve it as soon as possible.
I am handing off this issue to @kyle-ssg
Understanding the issue I think it's a bit debatable what should happen in this scenario, however, I think it the best behaviour would be to keep cached traits and overwrite with anything we find from flagsmith.init
.
I've created a PR here. Additionally, this can be viewed in 4.0.4-beta.1 if you'd like to confirm everything is as expected.
Please let me know if this resolves your issue!
I confirm that the problem is fixed in 4.0.4-beta.1
. Thanks for your help @kyle-ssg ! I'll keep an eye on when the fix gets deployed to main.
Published under 4.1.1! Thank you very much for testing / responding to the issue
It looks like it's the same problem reported in https://github.com/Flagsmith/flagsmith-js-client/issues/157, but for
traits
key instead ofidentity
.Our use case is the following:
lang
.lang
set to the new language, Flagsmith overlooks the updated value and keeps using the cached data stored in theBULLET_TRAIN_DB
.From what I can see, the solution should be to extend this condition so that it also applies to traits.