Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When cacheFlags: true cached traits overwrite updated traits in Flagsmith dashboard #273

Open
tiagoapolo opened this issue Dec 13, 2024 · 0 comments

Comments

@tiagoapolo
Copy link

Description

When the cacheFlags config option is set to true, cached traits overwrite updated traits in the Flagsmith dashboard. Making it difficult to update traits through Flagsmith dashboard.

Steps to Reproduce

  1. Set the cacheFlags: true
  2. Set trait in Flagsmith dashboard with value X for an identified user
  3. Make sure the SDK consumer cachedi that trait and flags in your browser's local storage
  4. Update trait with value Y in the Flagsmith dashboard.
  5. Refresh SDK consumer and check if trait value in local storage is X
  6. Check if trait value in Flagsmith dashboard has changed back from Y to X

Expected Behavior

When cacheFlags is enabled, updated traits in the Flagsmith dashboard should not be overwritten by cached values. The updated traits should be reflected accurately.

@tiagoapolo tiagoapolo changed the title When cacheFlags: true cached traits overwrites updated traits in Flagsmith dashboard When cacheFlags: true cached traits overwrite updated traits in Flagsmith dashboard Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant