Table of Contents

Class QueryPlaceholder

Namespace
Velvet
Assembly
Velvet.Docs.dll

Ready-made PlaceholderData functions.

public static class QueryPlaceholder
Inheritance
object
QueryPlaceholder

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 as PlaceholderData = QueryPlaceholder.KeepPreviousData.