You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.
causes Invariant Violation: Maximum update depth exceeded. And when using best practices according to eslint-plugin-react-hooks this dependency is automatically added. I suggest:
If setParams was immutable this wouldn't be a problem.
Not sure exactly how the plugin eslint-plugin-react-hooks works, but would of course be great if it wouldn't include something like setParams automatically. For setState this is the case - maybe using setState under the hood would make it smarter? Otherwise it's probably outside the scope of this package! :)
The text was updated successfully, but these errors were encountered:
I don't know if we want to ship such a public api, it feels a bit weird. In the meantime you can create useNavigationRef in userland, it seems pretty safe in most cases (according to React team, the risk is when you start to pass that ref to children comps as props)
causes
Invariant Violation: Maximum update depth exceeded
. And when using best practices according toeslint-plugin-react-hooks
this dependency is automatically added. I suggest:eslint-plugin-react-hooks
works, but would of course be great if it wouldn't include something like setParams automatically. For setState this is the case - maybe using setState under the hood would make it smarter? Otherwise it's probably outside the scope of this package! :)The text was updated successfully, but these errors were encountered: