initialData property

InitialData<TQueryData>? initialData
final

Data the cache starts with, as if it had been fetched — see InitialData. No default: unset, the query starts without data. Unlike placeholderData it is written to the cache, and it goes stale by staleTime from initialDataUpdatedAt on.

Implementation

final InitialData<TQueryData>? initialData;