Interface ContentFeatures<RT>
Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:65
Utilities for keeping the request fresh
Type Parameters
RT
RT
Properties
abort?
optional abort?: () => void;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:89
Aborts the in-flight refresh/reload request, if any.
Returns
void
isHidden
isHidden: boolean;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:73
Whether the browser reports that the tab is hidden.
isOnline
isOnline: boolean;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:69
Whether the browser reports that the network is online.
isRefreshing
isRefreshing: boolean;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:77
Whether the subscription is currently refreshing the request.
latestRequest?
optional latestRequest?: Future<RT>;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:93
The most recent refresh/reload request that was made, if any.
refresh
refresh: () => Promise<void>;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:81
Refreshes the request, updating it in the background.
Returns
Promise<void>
reload
reload: () => Promise<void>;Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:85
Retries the request, reloading it from the server.
Returns
Promise<void>