DEV Community

Discussion on: Use previous value through a React hook

Collapse
 
snigo profile image
Igor Snitkin

...though I guess in this will still work based on the fact that useEffect in custom hook will always be invoked before the one in Application, just in time switching values back. OK