Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

SetDataOptions.md

16 lines512 Bytes

Defined in: packages/query-core/src/types.ts:1655

Options for writing data into the cache, e.g. via queryClient.setQueryData(). updatedAt overrides the timestamp the data is recorded with, which is what staleness is measured from; omit it to use the current time.

Properties

PropertyType
updatedAt?number