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.
Type Parameters
Section titled “Type Parameters”Doc
Change
Section titled “Change”Change
PublicKey
Section titled “PublicKey”PublicKey
Parameters
Section titled “Parameters”MaybeRefOrGetter<DocumentStore<Doc, Change, PublicKey>>
Returns
Section titled “Returns”Readonly<ShallowRef<DocumentSnapshot<Doc, PublicKey>>>