Table of Contents

Property PlaceholderData

Namespace
Velvet
Assembly
Velvet.Docs.dll

PlaceholderData

TanStack Query's placeholderData given as a function: data the result shows while the entry has none and is pending, handed the data and the QueryInfo of the last entry this component read that had data and still has it — default and null when there is none. The result is then Success with IsPlaceholderData true, and the entry is left without data. KeepPreviousData<T>(T?, QueryInfo?) keeps the previous key's data; (_, _) => value is the value form.

public Func<TQueryFnData?, QueryInfo?, QueryPlaceholder<TQueryFnData>>? PlaceholderData { get; init; }

Property Value

Func<TQueryFnData, QueryInfo?, QueryPlaceholder<TQueryFnData>>