File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -386,8 +386,8 @@ is set to `"application/json"`.
386
386
- ` finishedAt ` When the last promise was resolved or rejected.
387
387
- ` status ` One of: ` waiting ` , ` pending ` , ` fulfilled ` , ` rejected ` .
388
388
- ` isWaiting ` true when no promise has ever started, or one started but was cancelled.
389
- - ` isPending ` true when a promise is currently awaiting settlement.
390
- - ` isFulfilled ` true when the last promise was fulfilled with a value.
389
+ - ` isPending ` true when a promise is currently awaiting settlement. Alias: ` isLoading `
390
+ - ` isFulfilled ` true when the last promise was fulfilled with a value. Alias: ` isResolved `
391
391
- ` isRejected ` true when the last promise was rejected with a reason.
392
392
- ` isSettled ` true when the last promise was fulfilled or rejected (not waiting or pending).
393
393
- ` counter ` The number of times a promise was started.
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ interface AbstractState<T> {
30
30
isPending : boolean
31
31
isLoading : boolean
32
32
isFulfilled : boolean
33
+ isResolved : boolean
33
34
isRejected : boolean
34
35
isSettled : boolean
35
36
counter : number
@@ -57,6 +58,14 @@ declare namespace Async {
57
58
children ?: AsyncChildren < T >
58
59
initial ?: boolean
59
60
} ) : React . ReactNode
61
+ export function Loading < T > ( props : {
62
+ children ?: AsyncChildren < T >
63
+ initial ?: boolean
64
+ } ) : React . ReactNode
65
+ export function Fulfilled < T > ( props : {
66
+ children ?: AsyncChildren < T >
67
+ persist ?: boolean
68
+ } ) : React . ReactNode
60
69
export function Resolved < T > ( props : {
61
70
children ?: AsyncChildren < T >
62
71
persist ?: boolean
@@ -65,6 +74,10 @@ declare namespace Async {
65
74
children ?: AsyncChildren < T >
66
75
persist ?: boolean
67
76
} ) : React . ReactNode
77
+ export function Settled < T > ( props : {
78
+ children ?: AsyncChildren < T >
79
+ persist ?: boolean
80
+ } ) : React . ReactNode
68
81
}
69
82
70
83
declare function createInstance < T > ( defaultProps ?: AsyncProps < T > ) : Async < T >
You can’t perform that action at this time.
0 commit comments