react-router 6.23.0-pre.1 → 6.23.1-pre.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,25 +1,25 @@
1
1
  # `react-router`
2
2
 
3
- ## 6.23.0-pre.1
3
+ ## 6.23.1-pre.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - allow undefined to be resolved with `<Await>` ([#11513](https://github.com/remix-run/react-router/pull/11513))
7
8
  - Updated dependencies:
8
- - `@remix-run/router@1.16.0-pre.1`
9
+ - `@remix-run/router@1.16.1-pre.0`
9
10
 
10
- ## 6.23.0-pre.0
11
+ ## 6.23.0
11
12
 
12
13
  ### Minor Changes
13
14
 
14
15
  - Add a new `unstable_dataStrategy` configuration option ([#11098](https://github.com/remix-run/react-router/pull/11098))
15
-
16
16
  - This option allows Data Router applications to take control over the approach for executing route loaders and actions
17
17
  - The default implementation is today's behavior, to fetch all loaders in parallel, but this option allows users to implement more advanced data flows including Remix single-fetch, middleware/context APIs, automatic loader caching, and more
18
18
 
19
19
  ### Patch Changes
20
20
 
21
21
  - Updated dependencies:
22
- - `@remix-run/router@1.16.0-pre.0`
22
+ - `@remix-run/router@1.16.0`
23
23
 
24
24
  ## 6.22.3
25
25
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v6.23.0-pre.1
2
+ * React Router v6.23.1-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1278,7 +1278,7 @@ class AwaitErrorBoundary extends React.Component {
1278
1278
  } else if (resolve._tracked) {
1279
1279
  // Already tracked promise - check contents
1280
1280
  promise = resolve;
1281
- status = promise._error !== undefined ? AwaitRenderStatus.error : promise._data !== undefined ? AwaitRenderStatus.success : AwaitRenderStatus.pending;
1281
+ status = "_error" in promise ? AwaitRenderStatus.error : "_data" in promise ? AwaitRenderStatus.success : AwaitRenderStatus.pending;
1282
1282
  } else {
1283
1283
  // Raw (untracked) promise - track it
1284
1284
  status = AwaitRenderStatus.pending;