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.
The functions like navigate/goBack etc should be able to be used in hooks / dependency arrays.
We should rather make them stable so that they don't trigger effect re-execution on every navigate action, which is not the case currently (as reported by @cmmartin here: #3 (comment))
@slorber Thanks for writing that up. I have been struggling with the same issues. My codebase is full of violations of the hooks dependencies lint rule and I'm not sure how to resolve them. Will follow the other issue
The functions like navigate/goBack etc should be able to be used in hooks / dependency arrays.
We should rather make them stable so that they don't trigger effect re-execution on every navigate action, which is not the case currently (as reported by @cmmartin here: #3 (comment))
See also https://github.com/react-navigation/core/issues/71
The core does not provide stable action functions currently, and it may be complicated to do so and guarantee that as part of the core contract.
But we can provide stabilization in this package.
The text was updated successfully, but these errors were encountered: