Skip to content

Documentation / @warp-drive/core / signals/-leaked / RequestArgs

Interface: RequestArgs<RT, E>

Defined in: core/src/signals/request-subscription.ts:52

Extends

Type Parameters

RT

RT

E

E

Properties

autorefresh?

ts
optional autorefresh: AutorefreshBehaviorCombos;

Defined in: core/src/signals/request-subscription.ts:96

The autorefresh behavior for the request. This can be a boolean, or any combination of the following values: 'online', 'interval', 'invalid'.

  • 'online': Refresh the request when the browser comes back online
  • 'interval': Refresh the request at a specified interval
  • 'invalid': Refresh the request when the store emits an invalidation

If true, this is equivalent to 'online,invalid'.

Defaults to false.

Inherited from

SubscriptionArgs.autorefresh


autorefreshBehavior?

ts
optional autorefreshBehavior: "reload" | "refresh" | "policy";

Defined in: core/src/signals/request-subscription.ts:122

The behavior of the request initiated by autorefresh. This can be one of the following values:

  • 'refresh': Refresh the request in the background
  • 'reload': Force a reload of the request
  • 'policy' (default): Let the store's configured CachePolicy decide whether to reload, refresh, or do nothing.

Defaults to 'policy'.

Inherited from

SubscriptionArgs.autorefreshBehavior


autorefreshThreshold?

ts
optional autorefreshThreshold: number;

Defined in: core/src/signals/request-subscription.ts:108

The number of milliseconds to wait before refreshing the request when the browser comes back online or the network becomes available.

This also controls the interval at which the request will be refreshed if the interval autorefresh type is enabled.

Defaults to 30_000 (30 seconds).

Inherited from

SubscriptionArgs.autorefreshThreshold


query?

ts
optional query: 
  | null
| StoreRequestInput<RT>;

Defined in: core/src/signals/request-subscription.ts:81

A query to use for the request. This should be an object that can be passed to store.request. Use this in place of @request if you would like the component to also initiate the request.

Inherited from

SubscriptionArgs.query


request?

ts
optional request: null | Future<RT>;

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

The request to monitor. This should be a Future instance returned by either the store.request or store.requestManager.request methods.

Inherited from

SubscriptionArgs.request


store?

ts
optional store: 
  | Store
  | RequestManager;

Defined in: core/src/signals/request-subscription.ts:63

The store instance to use for making requests. If contexts are available, the component will default to using the store on the context.

This is required if the store is not available via context or should be different from the store provided via context.


subscription?

ts
optional subscription: RequestSubscription<RT, E>;

Defined in: core/src/signals/request-subscription.ts:53

Released under the MIT License.