Closed zhangchen91 closed 5 years ago
Hello! That looks good at first glance! I didn't do that because in my primary use case, I needed multiple stores, so I couldn't rely of one provided for my entire app.
Nowaday, I don't really work much with Vuejs but I will be very happy to accept any pull request! Feel free to contribute :)
Maybe we should export multiple named component like:
find a name for my old default export to avoid too much breaking change
@zhangchen91 ping, are you insterested in contributing ?
I close because it's old, reopen if you want to contribute
I think in vue's pattern, we can use provide/inject to support Provider and Connect Components, and then It will be more redux-liked?
For example:
Provider:
Connect:
and the use case may like this
App.vue:
Counter.vue:
inspired: https://github.com/edvincandon/revux related: https://vuejs.org/v2/guide/components-edge-cases.html#Dependency-Injection demo: https://github.com/zhangchen91/vue-rematch-immer