The Plugin provides a general scope which needs for read and update effector’s stores, call effector’s events. Required for SSR.
Plugins
EffectorScopePlugin({ scope, scopeName })
Arguments
scope
ScopescopeName?
custom scopeName (default:root
)
Examples
Basic Usage
import { createSSRApp } from "vue";
import { EffectorScopePlugin } from "effector-vue";
import { fork } from "effector";
const app = createSSRApp(AppComponent);
const scope = fork();
app.use(
EffectorScopePlugin({
scope,
scopeName: "app-scope-name",
}),
);