Skip to content

API > useBabylonStore

Function: useBabylonStore()

useBabylonStore(pinia?, hot?): Store<"babylon", _UnwrapAll<Pick<object, "instance">>, Pick<object, never>, Pick<object, "setInstance">>

Returns a store, creates it if necessary.

Parameters

pinia?: null | Pinia

Pinia instance to retrieve the store

hot?: StoreGeneric

dev only hot module replacement

Source

packages/plugin-babylon/src/stores/index.ts:8


Generated using typedoc-plugin-markdown and TypeDoc