You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to work out how to access redux state from a connected component's props, using the top level method connecting it to the Router.
I'd like to avoid using multiple connects, as the Redux docs state:
Try to only do this for a top-level component, or route handlers
I'm refactoring some code using NavigatorIOS and was previously passing the necessary props using passProps. I can't see an equivalent - I guess that happens behind the scenes with connect? Or do I need to connect each Route's component?
The text was updated successfully, but these errors were encountered:
Feel free to submit PR for improving documentation. Btw, there is quite large discussion at redux github about having only one connect for top-level component, and i don't agree with this sentence.
I'm struggling to work out how to access redux state from a connected component's props, using the top level method connecting it to the Router.
I'd like to avoid using multiple
connect
s, as the Redux docs state:I'm refactoring some code using NavigatorIOS and was previously passing the necessary props using
passProps
. I can't see an equivalent - I guess that happens behind the scenes withconnect
? Or do I need toconnect
each Route's component?The text was updated successfully, but these errors were encountered: