Skip to content

QueryStateStore

type QueryStateStore = object;

Defined in: tanstack/core/store.ts:25

Per-adapter URL state store: optimistic updates, subscriptions and rate-limited commits.

getSnapshot: () => Snapshot;

Defined in: tanstack/core/store.ts:26

Snapshot


subscribe: (listener) => () => void;

Defined in: tanstack/core/store.ts:27

Parameter Type
listener () => void

() => void


syncFromSearch: (search) => void;

Defined in: tanstack/core/store.ts:29

Reconcile from an external URL change (router navigation / popstate).

Parameter Type
search string | URLSearchParams

void


update: (update) => Promise<URLSearchParams>;

Defined in: tanstack/core/store.ts:31

Apply an optimistic per-key update and schedule a rate-limited commit.

Parameter Type
update StoreUpdate

Promise<URLSearchParams>