@real-router/svelte 0.13.8 → 0.13.10
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getNavigator } from "@real-router/core";
|
|
3
|
-
import { createRouteSource } from "@real-router/sources";
|
|
3
|
+
import { createRouteSource, primeErrorSource } from "@real-router/sources";
|
|
4
4
|
import {
|
|
5
5
|
createRouteAnnouncer,
|
|
6
6
|
createScrollRestoration,
|
|
@@ -105,6 +105,13 @@
|
|
|
105
105
|
// svelte-ignore state_referenced_locally
|
|
106
106
|
// The route source intentionally captures the initial router instance.
|
|
107
107
|
const source = createRouteSource(router);
|
|
108
|
+
// #778 P2: eagerly create the per-router error source so a navigation error
|
|
109
|
+
// that fires BEFORE a RouterErrorBoundary mounts (a lazy app shell, a failed
|
|
110
|
+
// boot navigation) is still captured. The boundary's createDismissableError
|
|
111
|
+
// reuses this cached source and catches up (#765); without it the error source
|
|
112
|
+
// is created lazily on boundary mount — after the error — and never sees it.
|
|
113
|
+
// svelte-ignore state_referenced_locally
|
|
114
|
+
primeErrorSource(router);
|
|
108
115
|
const reactive = createReactiveSource(source);
|
|
109
116
|
const routeContext = createRouteContext(navigator, reactive);
|
|
110
117
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/svelte",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Svelte 5 integration for Real-Router",
|
|
6
6
|
"svelte": "./dist/index.js",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"license": "MIT",
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@real-router/core": "^0.61.
|
|
52
|
-
"@real-router/
|
|
53
|
-
"@real-router/
|
|
51
|
+
"@real-router/core": "^0.61.12",
|
|
52
|
+
"@real-router/route-utils": "^0.2.4",
|
|
53
|
+
"@real-router/sources": "^0.10.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@sveltejs/package": "2.5.8",
|