Table of Contents

Method GetQueryData

Namespace
Velvet
Assembly
Velvet.Docs.dll

GetQueryData<T>(QueryKey)

The data the entry queryKey names holds, TanStack Query's getQueryData: default when there is no such entry, it has no data yet, or it has gone unread past its garbage-collection time. Placeholder data is never an entry's.

public T? GetQueryData<T>(QueryKey queryKey)

Parameters

queryKey QueryKey

Returns

T

Type Parameters

T

Exceptions

InvalidOperationException

The entry holds data of another type.