|
|
|
|
|
by strogonoff
567 days ago
|
|
Are you sure contexts causing rerenders is not solvable by moving useContext() calls into hooks that each return only the part of the context that is required and ensure reference equality of returned value (meaning any component will not have a reason to rerender unless there is an actual change in that part of the context)? |
|
[1]: https://react.dev/reference/react/memo