Class QueryPlaceholder
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Ready-made PlaceholderData functions.
public static class QueryPlaceholder
- Inheritance
-
objectQueryPlaceholder
Methods
- KeepPreviousData<T>(T?, QueryInfo?)
TanStack Query's
keepPreviousData: the data of the last entry this component read that had some, so a component changing its key keeps showing the old key's data until the new key's lands. Pass it asPlaceholderData = QueryPlaceholder.KeepPreviousData.