Open CharlestonREM opened 3 years ago
https://github.com/facebook/react/issues/16537#issue-483790210
https://github.com/facebook/react/issues/16537#issuecomment-523771554
maybe the calculator provider &/or calculator component is causing the infinite loop...
is it vercel related? https://github.com/vercel/next.js/issues/6973
https://github.com/vercel/next.js/issues/6973#issuecomment-821500414
https://github.com/vercel/next.js/issues/6973#issuecomment-821508232
Problem
An infinite loop (or infinite loops) seem to be occurring due to the unstable context value of one or multiple providers.
This project has 4 providers that I have created.
Stepper Provider
Available Products Provider
Calculator Provider
Modal Provider
Research & considering
useMemo
hookAll four of these providers employ React's
useReducer
hook. In a final note onuseReducer
in Hooks Api, there is a subheading labeled Bailing out of a dispatchA question I don't currently have a clear answer to: what constitutes as an
?
useMemo