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
@@ -400,7 +408,7 @@ export type Primitive = null | undefined | string | number | boolean | symbol |
400
408
// Warning: (ae-incompatible-release-tags) The symbol "ReconcilerFunction" is marked as @public, but its signature references "DeepMerger" which is marked as @internal
Handle an edge case with the `Defer20220824Handler` where an error for a `@stream` item that bubbles to the `@stream` boundary (such as an item returning `null` for a non-null array item) would write items from future chunks to the wrong array index. In these cases, the `@stream` field is no longer processed and future updates to the field are ignored. This prevents runtime errors that TypeScript would otherwise not be able to catch.
// some environments do not have `DOMException`, e.g. node
2074
-
// uses a normal `Error` with a `name` property instead: https://github.com/phryneas/node/blob/d0579b64f0f6b722f8e49bf8a471dd0d0604a21e/lib/internal/errors.js#L964
2075
-
// error.code is a legacy property that is not used anymore,
2076
-
// and also inconsistent across environments (in supporting
2077
-
// browsers it is `20`, in node `'ABORT_ERR'`) so we omit that.
2078
-
: Object.assign(newError(message),{ name })
2079
-
);
2080
-
}
2081
-
},
2082
-
});
2036
+
2037
+
if(
2038
+
value.kind==="N"&&
2039
+
value.source!=="newNetworkStatus"&&
2040
+
!value.value.loading
2041
+
){
2042
+
lastValue=value.value;
2043
+
}
2044
+
},
2045
+
finalize: ()=>{
2046
+
if(lastValue){
2047
+
resolve(lastValue);
2048
+
}else{
2049
+
constmessage="The operation was aborted.";
2050
+
constname="AbortError";
2051
+
reject(
2052
+
typeofDOMException!=="undefined" ?
2053
+
newDOMException(message,name)
2054
+
// some environments do not have `DOMException`, e.g. node
2055
+
// uses a normal `Error` with a `name` property instead: https://github.com/phryneas/node/blob/d0579b64f0f6b722f8e49bf8a471dd0d0604a21e/lib/internal/errors.js#L964
2056
+
// error.code is a legacy property that is not used anymore,
2057
+
// and also inconsistent across environments (in supporting
2058
+
// browsers it is `20`, in node `'ABORT_ERR'`) so we omit that.
0 commit comments