You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(core): convert ResourceStatus to a string type (angular#60919)
An outcome of the Resource RFC was that we should use string constants for
communicating the resource status instead of an enum. This commit converts
`ResourceStatus` accordingly.
PR Closeangular#60919
Copy file name to clipboardExpand all lines: adev/src/content/guide/signals/resource.md
+10-11
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,7 @@ The `ResourceLoaderParams` object contains three properties: `request`, `previou
47
47
|`previous`| An object with a `status` property, containing the previous `ResourceStatus`. |
48
48
|`abortSignal`| An [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal). See [Aborting requests](#aborting-requests) below for details. |
49
49
50
-
51
-
If the `request` computation returns `undefined`, the loader function does not run and the resource status becomes `Idle`.
50
+
If the `request` computation returns `undefined`, the loader function does not run and the resource status becomes `'idle'`.
52
51
53
52
### Aborting requests
54
53
@@ -100,15 +99,15 @@ The resource object has several signal properties for reading the status of the
100
99
|`isLoading`| Whether the resource loader is currently running. |
101
100
|`status`| The resource's specific `ResourceStatus`, as described below. |
102
101
103
-
The `status` signal provides a specific `ResourceStatus` that describes the state of the resource.
102
+
The `status` signal provides a specific `ResourceStatus` that describes the state of the resource using a string constant.
0 commit comments