Skip to content

Need for shallow equality function #256

Closed Answered by dai-shi
gmahima asked this question in Q&A
Discussion options

You must be logged in to vote

Try creating another property like test2 and setTest2, and calling setTest2 will let Home component re-render, even though it doesn't depend on test2.
If you had a codesandbox of your example, I could modify it to show the difference.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gmahima
Comment options

You must be logged in to vote
3 replies
@gmahima
Comment options

@dai-shi
Comment options

@gmahima
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants