Method ResetQueries
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
ResetQueries(QueryFilters?, RefetchOptions?)
Puts the entries filters selects back to the state of one never fetched, with no
data and no error, cancelling their requests, and then fetches those an enabled query reads —
TanStack Query's resetQueries. A Type of null refetches the active
entries; one that is set also selects what is refetched.
public VelvetTask ResetQueries(QueryFilters? filters = null, RefetchOptions? options = null)
Parameters
filtersQueryFiltersThe entries to reset; null selects every entry.
optionsRefetchOptions
Returns
- VelvetTask
A task that completes once the fetches have settled.