QueryStateStore
type QueryStateStore = object;Defined in: tanstack/core/store.ts:25
Per-adapter URL state store: optimistic updates, subscriptions and rate-limited commits.
Properties
Section titled “Properties”getSnapshot
Section titled “getSnapshot”getSnapshot: () => Snapshot;Defined in: tanstack/core/store.ts:26
Returns
Section titled “Returns”subscribe
Section titled “subscribe”subscribe: (listener) => () => void;Defined in: tanstack/core/store.ts:27
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
listener |
() => void |
Returns
Section titled “Returns”() => void
syncFromSearch
Section titled “syncFromSearch”syncFromSearch: (search) => void;Defined in: tanstack/core/store.ts:29
Reconcile from an external URL change (router navigation / popstate).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
search |
string | URLSearchParams |
Returns
Section titled “Returns”void
update
Section titled “update”update: (update) => Promise<URLSearchParams>;Defined in: tanstack/core/store.ts:31
Apply an optimistic per-key update and schedule a rate-limited commit.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
update |
StoreUpdate |
Returns
Section titled “Returns”Promise<URLSearchParams>