API reference · generated from source
Interface: IQueryNodeOptions<TArgs, TState>#
Defined in: retree-query/src/types.ts:141
Constructor options for QueryNode.
Type Parameters#
| Type Parameter |
|---|
TArgs |
TState |
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
args | TArgs | Initial arguments for the query subscription. Remarks Must not be undefined: the node uses undefined internally to mean "no subscription yet". Use an empty object for argument-less queries. | retree-query/src/types.ts:149 |
initialState? | TState | Optional state to expose before the source emits a value. | retree-query/src/types.ts:153 |
keepPreviousData? | boolean | Keep the previous state visible (with result.isStale set to true) while a subscription opened by updateArgs loads, instead of resetting to "pending". | retree-query/src/types.ts:164 |
reconcile? | IStateReconciler<TState> | Optional custom reconciler for retaining existing object identities when new query results arrive. | retree-query/src/types.ts:158 |