Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

React components using useRef hook break #153

Open
tawtsvenz opened this issue Mar 1, 2021 · 0 comments
Open

React components using useRef hook break #153

tawtsvenz opened this issue Mar 1, 2021 · 0 comments

Comments

@tawtsvenz
Copy link

tawtsvenz commented Mar 1, 2021

useRef react hook is not respected and is re-initialized everytime a route is navigated to. This breaks the hook as it is supposed to keep the set current value across renders of the component. I'm working around this currently by using global variables instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant