Skip to main content
Version: 11.x

Type Alias: UseDehydratedState()<TRouter>

UseDehydratedState<TRouter>: (client, trpcState) => DehydratedState | undefined

Type Parameters

Type Parameter
TRouter extends AnyRouter

Parameters

ParameterType
clientTRPCUntypedClient<TRouter>
trpcStateDehydratedState | undefined

Returns

DehydratedState | undefined

Defined in

packages/react-query/src/shared/hooks/types.ts:237