didierfranc / react-waterfall

React store built on top of the new context API
MIT License
1.33k stars 77 forks source link

Multiple Contexts supported? #98

Open mstronge opened 5 years ago

mstronge commented 5 years ago

Hi,

Wondering if someone could provide a little help - I'm currently working on a project that asynchronously loads in a chunk of code as a small 'UI microservice' - I'm having problems with react-waterfall in that the first instance works perfectly fine however if I load the chunk again im seeing that the first instance of react-waterfall no longer seems to work, and is actually triggering actions against the second instance.

I guess my question is - are multiple contexts utilising different redux instances supported with this library?

Thanks Matt

hhunaid commented 5 years ago

Having the same issue in react native with react-native-navigation Each screen uses a new context

domialex commented 5 years ago

@hhunaid Do you still have the problem? Can you post a codepen? Maybe a duplicate of #97.

nanxiaobei commented 3 years ago

react-easy-contexts, A simple tool to add multiple React contexts easily.

https://github.com/nanxiaobei/react-easy-contexts