UseTrackedDataOptions

type UseTrackedDataOptions = object;

Options accepted by useTrackedData.

Properties

getAbortSignal?

optional getAbortSignal?: () => AbortSignal;

Factory invoked on every attempt (initial run + every refresh()). The returned signal is attached to that attempt via the underlying store's withSignal(signal).connect(), so aborting it tears down both the in-flight RPC request and the subscription for that attempt.

The most common use is per-attempt timeouts: getAbortSignal: () => AbortSignal.timeout(30_000) gives every attempt its own 30-second clock that resets on refresh().

Held in a ref synced to the latest render's closure — there is no need to memoize an inline factory.

Returns

AbortSignal

On this page