DEV Community

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

justboris profile image
Boris Serdiuk Author

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: