trofim-samusev / star-wars-directory

0 stars 0 forks source link

Switch from native react context to use-context from Dai Shi #13

Open trofim-samusev opened 2 years ago

trofim-samusev commented 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

trofim-samusev commented 2 years ago

We can also consider using Recoil for state management.