Skip to content

usePeerborneStore

usePeerborneStore<Doc, Change, PublicKey>(store): Readonly<ShallowRef<DocumentSnapshot<Doc, PublicKey>>>

Defined in: index.ts:17

Bind a shared store in setup(); document access begins after mounting. Pass a ref or getter, such as () => props.store, to follow a changing store.

Doc

Change

PublicKey

MaybeRefOrGetter<DocumentStore<Doc, Change, PublicKey>>

Readonly<ShallowRef<DocumentSnapshot<Doc, PublicKey>>>