kbventures / mtrade-frontend

mTrade Frontend
https://mtrade-frontend.vercel.app/
MIT License
3 stars 1 forks source link

FE-ISSUE-22--implement-use-memo-in-context-providers #22

Open kbventures opened 1 year ago

kbventures commented 1 year ago

Implement useMemo so we can remove the eslint exception comment and confirm implement memoization is appropriate.

https://frontendbyte.com/how-to-use-react-context-api-usereducer-hooks/#How_to_nest_and_optimize_useContext_with_useMemo

https://www.youtube.com/watch?v=THL1OPn72vo

https://beta.reactjs.org/reference/react/useMemo

https://reactjs.org/docs/hooks-reference.html#usecontext

https://reactjs.org/docs/hooks-overview.html

https://reactjs.org/docs/hooks-effect.html

https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md