Effector bindings for Vue.
Requirements
effector-vue supports Vue 2 and Vue 3.3 or newer. Vue 3.0, 3.1 and 3.2 are not supported since effector-vue 23.3.0.
Examples of the Composition API are written in TypeScript: <script setup lang="ts"> and model.ts. In JavaScript, drop lang="ts" and the type annotations, the rest of the code stays the same.
Top-Level Exports
- VueEffector(Vue, options?)
- createComponent(ComponentOptions, store?)
EffectorScopePlugin({scope, scopeName?, forceScope?, live?})
ComponentOptions API
Hooks
- useUnit(shape, options?)
- useStore(store, options?)
useStoreMap({store, keys, fn})- useVModel(store, options?)
- useProvidedScope(options?)
Gate API
Scope
EffectorScopeKey, the injection key of the scope- How the scope is resolved
Import map
Package effector-vue provides couple different entry points for different purposes: