Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to avoid Provider hell? #42

Closed
filipjnc opened this issue Jun 27, 2019 · 1 comment
Closed

How to avoid Provider hell? #42

filipjnc opened this issue Jun 27, 2019 · 1 comment

Comments

@filipjnc
Copy link

filipjnc commented Jun 27, 2019

This is a very simple yet versatile state management solution with support for hooks - props for that.

I'd like to know whether there is a way to avoid the Provider hell:

<Store1.Provider>
  <Store2.Provider>
     <Store3.Provider>
       <App />
     </Store3.Provider>
  </Store2.Provider>
</Store1.Provider>

when all I want to do is:

<Provider stores=[Store1, Store2, Store3]>
  <App />
</Provider>
@AjaxSolutions
Copy link

AjaxSolutions commented Jun 27, 2019

See this...

#35

@filipjnc filipjnc closed this as completed Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants