How does React know to re-render? #145
Replies: 5 comments 5 replies
-
Hi @jeffreyschultz! All of the React hooks and components are built on top of useSelector. That runs React's
Does that help? I realize that's a pretty short and dense answer... I wonder if it would be useful to write out a more detailed description of how things work in a docs page? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply! This gives me a better path forward to understanding the codebase. Much appreciated! |
Beta Was this translation helpful? Give feedback.
-
Does that mean Legend State is only compatible with React v 18+ right? |
Beta Was this translation helpful? Give feedback.
-
@jmeistrich the But what about |
Beta Was this translation helpful? Give feedback.
-
I checked the source code for useSelector and in useSelector, |
Beta Was this translation helpful? Give feedback.
-
I have been studying the code for the last day and curious how React knows to rerender a component from a legend state change. What is the mechanism that drives that notifies React of an update?
Beta Was this translation helpful? Give feedback.
All reactions