facebookarchive / redux-react-hook

React Hook for accessing state and dispatch from a Redux store
MIT License
2.16k stars 103 forks source link

question about re-render guarantee mentioned in docs #58

Closed kvedantmahajan closed 5 years ago

kvedantmahajan commented 5 years ago

React Redux also guarantees that data flows top down, so that child components update after their parents, which the hook does not.

What does it means it doesn't flows top down. re-renders work fine for children. In which cases this guarantees is broken?

ianobermiller commented 5 years ago

The React Redux docs cover this quite well: https://react-redux.js.org/next/api/hooks#stale-props-and-zombie-children