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
The error throwing behavior of the native `resource` causes a deadlock in the error case.
@@ -111,6 +131,10 @@ Options:
111
131
112
132
Under the hood, `'previous value'` and `'undefined value'` proxy the value. For a detailed explanation for why this is done, check out the [JSDoc for the error handling strategy](https://github.com/angular-architects/ngrx-toolkit/blob/main/libs/ngrx-toolkit/src/lib/with-resource.ts#L402).
113
133
134
+
The implications of `undefined value` is that the inferred value can be `undefined`, even if there is a `defaultValue` set for the resource.
135
+
For example, in the [`Updating`](#updating) section, `listValue` will be inferred as `User[] | undefined`. To be able to infer the type with a guaranteed value,
136
+
use `{ errorHandling: 'previous value' }` of `withResource` in conjunction with `defaultValue` of said resource.
0 commit comments