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

Ensure persisted value is kept in sync with selected value #12596

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

NickM-27
Copy link
Collaborator

@NickM-27 NickM-27 commented Jul 24, 2024

usePersistence was used internally across multiple parts of the code. The instance that had setValue called on it would have the correct value, but other instances would not update the internal value causing an old persistedValue to be used. This ensures that the persistedValue is always updated internally whenever setOverlayState is called

Copy link

netlify bot commented Jul 24, 2024

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit add8d18
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/66a1357d8e66bb00081e0d31

@NickM-27 NickM-27 changed the title Check if persisted value is loaded Ensure persisted value is kept in sync with selected value Jul 24, 2024
@NickM-27 NickM-27 merged commit 5c15659 into dev Jul 24, 2024
13 checks passed
@NickM-27 NickM-27 deleted the fix-overlay branch July 24, 2024 17:17
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.

2 participants