Skip to content

Documentation / @warp-drive/core / reactive / PendingPromise

Interface: PendingPromise

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:14

The state of a promise in the "pending" state. This is the default initial state.

Properties

error

ts
error: null;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:69

Once the promise has rejected, this will be the error the promise rejected with.

Deprecated

use reason instead


isError

ts
isError: false;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:46

Whether the promise has rejected with an error.


isLoading

ts
isLoading: true;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:32

Whether the promise is pending.

Deprecated

use isPending instead


isPending

ts
isPending: true;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:25

Whether the promise is pending.


isSuccess

ts
isSuccess: false;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:39

Whether the promise has resolved successfully.


reason

ts
reason: null;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:76

Once the promise has rejected, this will be the error the promise rejected with.


result

ts
result: null;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:60

Once the promise has resolved, this will be the value the promise resolved to.

Deprecated

use value instead


status

ts
status: "pending";

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:19

The status of the promise.


value

ts
value: null;

Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:53

Once the promise has resolved, this will be the value the promise resolved to.

Released under the MIT License.