QueryStateTestingAdapterProps
type QueryStateTestingAdapterProps = object;Defined in: tanstack/adapters/testing.tsx:14
Properties
Section titled “Properties”children
Section titled “children”children: ReactNode;Defined in: tanstack/adapters/testing.tsx:15
defaultOptions?
Section titled “defaultOptions?”defaultOptions?: QueryStateOptions;Defined in: tanstack/adapters/testing.tsx:18
onUrlUpdate?
Section titled “onUrlUpdate?”onUrlUpdate?: (event) => void;Defined in: tanstack/adapters/testing.tsx:21
Called whenever a URL commit fires, instead of touching the real URL.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event |
UrlUpdateEvent |
Returns
Section titled “Returns”void
processUrlSearchParams?
Section titled “processUrlSearchParams?”processUrlSearchParams?: (params) => URLSearchParams | void;Defined in: tanstack/adapters/testing.tsx:19
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
params |
URLSearchParams |
Returns
Section titled “Returns”URLSearchParams | void
searchParams?
Section titled “searchParams?”searchParams?: string | URLSearchParams;Defined in: tanstack/adapters/testing.tsx:17
Initial query string (e.g. "?count=42") or URLSearchParams.