Skip to content

@vue-flow/monorepo • Docs


Function: useVueFlow() ​

useVueFlow(id) ​

useVueFlow(id?): VueFlowStore

Composable that provides access to a store instance

If no id is provided, the store instance is injected from context

If no store instance is found in context, a new store instance is created and registered in storage

Parameters ​

• id?: string

Returns ​

VueFlowStore

a vue flow store instance

useVueFlow(options) ​

useVueFlow(options?): VueFlowStore

Parameters ​

• options?: FlowProps

Returns ​

VueFlowStore

Released under the MIT License.