Unsubscribe
Unsubscribe = () =>
void
Defined in: packages/@livestore/livestore/src/store/store-types.ts:279
Function returned by store.subscribe() to stop receiving updates.
Call this to unsubscribe from a query and release the associated resources.
Returns
Section titled “Returns”void
Example
Section titled “Example”const unsubscribe = store.subscribe(todos$, (todos) => console.log(todos))// Later...unsubscribe()