Table of Contents

Method SetQueriesData

Namespace
Velvet
Assembly
Velvet.Docs.dll

SetQueriesData<T>(QueryFilters?, Func<T?, T>)

SetQueryData<T>(QueryKey, Func<T?, T>) over each entry filters selects that holds data of type T, TanStack Query's setQueriesData. An updater returning null leaves its entry as it was.

public IReadOnlyList<KeyValuePair<QueryKey, T?>> SetQueriesData<T>(QueryFilters? filters, Func<T?, T> updater)

Parameters

filters QueryFilters
updater Func<T, T>

Returns

IReadOnlyList<KeyValuePair<QueryKey, T>>

The key and the data written to each entry.

Type Parameters

T