Skip to content
module@warp-drive/core/signals/-leaked

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?

ts
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

ts
isHidden: boolean;

Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:73

Whether the browser reports that the tab is hidden.


isOnline

ts
isOnline: boolean;

Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:69

Whether the browser reports that the network is online.


isRefreshing

ts
isRefreshing: boolean;

Defined in: warp-drive-packages/core/src/signals/request-subscription.ts:77

Whether the subscription is currently refreshing the request.


latestRequest?

ts
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

ts
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

ts
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>

Released under the MIT License.