I've some idea to make this plugin evolve in a near future.
Restore the connect function
Why
We can export only one component to the .vue files (due to the templates). To connect a component, we need to create 2 .vue. One is the provider, the other is the dumb component. It can be useful to use the connect function for trivial connected components.
Drawback
The HOCs in Vue can lead to some bugs and the connect function would be in alpha version.
Breaking change
The connect function would be exported as a named export. The default export won't change to avoid any breaking change
I've some idea to make this plugin evolve in a near future.
Restore the connect function
Why
We can export only one component to the
.vue
files (due to the templates). To connect a component, we need to create 2.vue
. One is the provider, the other is the dumb component. It can be useful to use the connect function for trivial connected components.Drawback
The HOCs in Vue can lead to some bugs and the
connect
function would be in alpha version.Breaking change
The
connect
function would be exported as a named export. The default export won't change to avoid any breaking changeAdd a Provider and HOC to connect rematch
Why
I really like rematch and how they abstracted redux in the right way. I would imagine a Provider that is easier to connect with the dumb component.
How do you see the integration with rematch ? Do you have any issues about this ?