DEV Community

Discussion on: Popular patterns and anti-patterns with React Hooks

Collapse
 
justboris profile image
Boris Serdiuk

The answer depends on the use-case. Some things are not supposed to change in runtime and it is nice to move them out of the dependencies tracking logic altogether

For example, you can see this pattern in react-redux hook: react-redux.js.org/api/hooks#custo...