Skip to content

Documentation / @super-store/store / createStore

Function: createStore() ​

createStore(doc?): Store

Defined in: store.ts:115

Create a Store that owns a private Y.Doc (no yjs import needed). Pass an existing doc only if you must share it with code that already holds one.

Parameters ​

doc? ​

Doc

Returns ​

Store

Released under the MIT License.