diox/connectors/vue
Official diox connector for Vue.
Usage
The useSubscription
method allows you to subscribe to changes from a given module, and automatically handles component's reactivity. Returns the reduced state each time it changes.
moduleId
Id of the module to subscribe to.reducer
Optional state reducer. Allows you to transform the new state to get exactly what you need. Defaults to the identify function.
This connector is designed to be used with Vue 3's Composition API.
Last updated