Table of Contents

Struct QueryPlaceholder<T>

Namespace
Velvet
Assembly
Velvet.Docs.dll

Data a query shows while it has none of its own, or nothing: what PlaceholderData returns, where TanStack Query's function returns the data or undefined. A value converts to it implicitly, and a null value is no data.

public readonly struct QueryPlaceholder<T>

Type Parameters

T

The query function's data type.

Constructors

QueryPlaceholder(T)

Wraps value; a null value is no data.

Properties

HasValue

Whether there is placeholder data.

Value

The placeholder data; default when there is none.

Operators

implicit operator QueryPlaceholder<T>(T)

Wraps value; a null value is no data.