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
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
isError: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:46
Whether the promise has rejected with an error.
isLoading
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
isPending: true;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:25
Whether the promise is pending.
isSuccess
isSuccess: false;
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:39
Whether the promise has resolved successfully.
reason
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
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
status: "pending";
Defined in: core/src/store/-private/new-core-tmp/promise-state.ts:19
The status of the promise.
value
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.