DEV Community

[Comment from a deleted post]
 
kentcdodds profile image
Kent C. Dodds

Well, if you were to put the redux store into the provider component, then it could expose the dispatch from the store for consumers and the provider could subscribe to updates and call setState on itself which would re-render and update the context value which would rerender subscribers.

 
xuejisun profile image
XuejiSun

Great thanks!