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

State memoization with deep comparison #39

Closed

Conversation

morellodev
Copy link
Contributor

@morellodev morellodev commented Nov 9, 2020

This PR closes #33. It uses dequal to perform deep value comparison between the old and the new state in order to avoid unnecessary renders on client components.

Copy link
Contributor Author

@morellodev morellodev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morellodev morellodev closed this Aug 23, 2023
@morellodev morellodev deleted the feature/deep-comparison branch August 23, 2023 06:00
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.

return memoized object if it equals current value
1 participant