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

fix(#129): detect variant payload change in useVariant hook #132

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Sep 29, 2023

As described in #129, the react SDK didn't take into account if a variant's payload had changed when getting updates, resulting in potentially stale data.

This PR addresses that by checking all parts of the variant before determining whether it has changed.

Closes #129

@thomasheartman thomasheartman merged commit e95d8d6 into main Sep 29, 2023
@thomasheartman thomasheartman deleted the fix(#129)/useVariant-has-changed branch September 29, 2023 14:08
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

Successfully merging this pull request may close these issues.

option to have useVariant update on payload.value change
2 participants