Open bpetetot opened 6 years ago
Yes we could I thank about it a lot. All of this is related to:
(#94/#102/#72) this is about hot loading reducers / configurations
But this is a big issue to think about since:
An other thing we can do is to create a local store for your screen. We can get inspiration from https://github.com/alakarteio/multi-store-redux-saga so all events pass through parent store.
k-ramel already propose the ability to load listeners dynamically.
Do you think that it could also load some reducers dynamically in order to have a complete separation of some screens ?
For example, in my app, I have an admin page that managing all my application users. And I have specific reducers (users data, admin screens data) specific to that page. So I could have a container loading k-ramel reducers and listeners specific to it :
And it could be a great optimisation for apps using code splitting (dynamic imports).