@tanstack/solid-start-client 1.141.1 → 1.141.4
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/dist/esm/hydrateStart.d.ts +5 -0
- package/dist/esm/hydrateStart.js +10 -0
- package/dist/esm/hydrateStart.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +4 -4
- package/src/hydrateStart.ts +12 -0
- package/src/index.tsx +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { hydrateStart as hydrateStart$1 } from "@tanstack/start-client-core/client";
|
|
2
|
+
async function hydrateStart() {
|
|
3
|
+
const router = await hydrateStart$1();
|
|
4
|
+
window.$_TSR?.h();
|
|
5
|
+
return router;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
hydrateStart
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=hydrateStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hydrateStart.js","sources":["../../src/hydrateStart.ts"],"sourcesContent":["import { hydrateStart as coreHydrateStart } from '@tanstack/start-client-core/client'\nimport type { AnyRouter } from '@tanstack/router-core'\n\n/**\n * Solid-specific wrapper for hydrateStart that signals hydration completion\n */\nexport async function hydrateStart(): Promise<AnyRouter> {\n const router = await coreHydrateStart()\n // Signal that router hydration is complete so cleanup can happen if stream has ended\n window.$_TSR?.h()\n return router\n}\n"],"names":["coreHydrateStart"],"mappings":";AAMA,eAAsB,eAAmC;AACvD,QAAM,SAAS,MAAMA,eAAA;AAErB,SAAO,OAAO,EAAA;AACd,SAAO;AACT;"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { StartClient } from './StartClient.js';
|
|
2
|
-
export { hydrateStart } from '
|
|
2
|
+
export { hydrateStart } from './hydrateStart.js';
|
package/dist/esm/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/solid-start-client",
|
|
3
|
-
"version": "1.141.
|
|
3
|
+
"version": "1.141.4",
|
|
4
4
|
"description": "Modern and scalable routing for Solid applications",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"tiny-invariant": "^1.3.3",
|
|
47
47
|
"tiny-warning": "^1.0.3",
|
|
48
|
-
"@tanstack/router
|
|
49
|
-
"@tanstack/
|
|
50
|
-
"@tanstack/start-client-core": "1.141.
|
|
48
|
+
"@tanstack/solid-router": "1.141.4",
|
|
49
|
+
"@tanstack/router-core": "1.141.4",
|
|
50
|
+
"@tanstack/start-client-core": "1.141.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@solidjs/testing-library": "^0.8.10",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { hydrateStart as coreHydrateStart } from '@tanstack/start-client-core/client'
|
|
2
|
+
import type { AnyRouter } from '@tanstack/router-core'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Solid-specific wrapper for hydrateStart that signals hydration completion
|
|
6
|
+
*/
|
|
7
|
+
export async function hydrateStart(): Promise<AnyRouter> {
|
|
8
|
+
const router = await coreHydrateStart()
|
|
9
|
+
// Signal that router hydration is complete so cleanup can happen if stream has ended
|
|
10
|
+
window.$_TSR?.h()
|
|
11
|
+
return router
|
|
12
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { StartClient } from './StartClient'
|
|
2
|
-
export { hydrateStart } from '
|
|
2
|
+
export { hydrateStart } from './hydrateStart'
|