flagsmith-js-client icon indicating copy to clipboard operation
flagsmith-js-client copied to clipboard

Identifier/trait confusion when using `cacheOptions: { skipAPI: true } `

Open rolodato opened this issue 1 year ago • 0 comments

Using a slightly-modified version of the React example here, I can reproduce the issue below https://github.com/Flagsmith/flagsmith-js-examples/compare/main...rolodato:flagsmith-js-examples-repro-17cf4148:main

I'm not sure what's going on here exactly, but you can see in some conditions we are using cached traits from a previous identity and inserting them into an unrelated identity. Identity B should never have a name: "A" trait set.

https://github.com/Flagsmith/flagsmith-js-client/assets/829698/8999a85d-d0e3-42d8-afd6-4b2d96172e73

rolodato avatar May 16 '24 16:05 rolodato