Open trofim-samusev opened 2 years ago
There is a performance issue with using context from React -
When a context value is changed, all components that useContext will re-render.
Use this lib to rewrite context usage on PeoplePage - https://github.com/dai-shi/use-context-selector
We can also consider using Recoil for state management.
There is a performance issue with using context from React -
Use this lib to rewrite context usage on PeoplePage - https://github.com/dai-shi/use-context-selector