Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

how to pass a store down a nested component hierarchy? #14

Closed
Kosta-Github opened this issue Jan 15, 2016 · 2 comments
Closed

how to pass a store down a nested component hierarchy? #14

Kosta-Github opened this issue Jan 15, 2016 · 2 comments

Comments

@Kosta-Github
Copy link

What is the best/recommended way to pass a store down a nested component hierarchy if I don't want to use a global object for that?

Is there something like the <Provider store={myStore}> mechanism from react-redux. I haven't found anything related to that neither in the docs nor in the test suite...

@Kosta-Github
Copy link
Author

Answering myself: OK, I'll go with explicitly passing the store on from component to component down the nested hierarchy...

@mweststrate
Copy link
Member

Yeah, I always do that as well. You could (like redux connect) use React's context mechanism, but to me it makes it a bit obscure.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants