Skip to content
module@warp-drive/ember/index

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8933

Utilities for keeping the request fresh

Type Parameters

RT

RT

Properties

abort()?

ts
optional abort: () => void;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8957

Aborts the in-flight refresh/reload request, if any.

Returns

void


isHidden

ts
isHidden: boolean;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8941

Whether the browser reports that the tab is hidden.


isOnline

ts
isOnline: boolean;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8937

Whether the browser reports that the network is online.


isRefreshing

ts
isRefreshing: boolean;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8945

Whether the subscription is currently refreshing the request.


latestRequest?

ts
optional latestRequest: Future<RT>;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8961

The most recent refresh/reload request that was made, if any.


refresh()

ts
refresh: () => Promise<void>;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8949

Refreshes the request, updating it in the background.

Returns

Promise<void>


reload()

ts
reload: () => Promise<void>;

Defined in: warp-drive-packages/core/declarations/internal-DMxLqCZa.d.ts:8953

Retries the request, reloading it from the server.

Returns

Promise<void>

Released under the MIT License.