@effector/babel-plugin
Call setStoreName on createStore calls
Install
Using npm:
npm install --save-dev @effector/babel-plugin
or using yarn:
yarn add @effector/babel-plugin --dev
effector-vue 20.5.0
-
Migrated from Vue.util.defineReactive to Vue.observable
-
Effector stores will show in Vue devtools
-
Cosmetic improvements for support plugin in the future.
-
Now we can add some units to effector object (will be return Store<number>)
const fx = createEffect({...});
export default Vue.extend({
effector: {
isCompleted: fx.done
},
watch: {
isCompleted(sid) {
this.isPopupOpened = false;
}
},
data: () => ({
isPopupOpened: true,
})
})
- Support v-model directive for scalar values
const $msg = createStore()
export default Vue.extend({
effector: {
$msg,
},
})
<template>
<input v-model="$msg" />
</template>