randallknutson / redux-injector

Allows dynamically injecting reducers into a redux store at runtime
59 stars 14 forks source link

Uses a singleton store #6

Open wmertens opened 7 years ago

wmertens commented 7 years ago

Would it not be possible to make the injection work with the store that is on context? That way, this works with server-side rendering. So there'd be a decorator that you pass the reducer to and it injects it on Redux…

randallknutson commented 7 years ago

I'm very much in favor of this. I didn't like using a global to store the configs in the first place. If I have some time I'll look into refactoring this. Otherwise feel free to offer a pull request.