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

Rewrite websocket to use tracked state instead of context #10091

Merged
merged 5 commits into from
Feb 27, 2024
Merged

Conversation

NickM-27
Copy link
Sponsor Collaborator

@NickM-27 NickM-27 commented Feb 27, 2024

React contexts force all children to rerender even if props did not change. This meant that with audio enabled the entire page rerendered multiple times per second causing extreme performance issues.

React tracked allows us to only update children when the specific part of the state that they listen to updates

Copy link

netlify bot commented Feb 27, 2024

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit a12e6af
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/65de04193e37b300085ee874

@NickM-27 NickM-27 merged commit 21defbe into dev Feb 27, 2024
13 checks passed
@NickM-27 NickM-27 deleted the fix-ws branch February 27, 2024 16:05
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