vike-solid 0.7.7 → 0.7.8
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.
|
@@ -49,10 +49,11 @@ function Wrapper(props) {
|
|
|
49
49
|
// Inner wrapping
|
|
50
50
|
...(pageContext.config.Layout || []),
|
|
51
51
|
// Outer wrapping
|
|
52
|
-
...(pageContext.config.Wrapper || [])]));
|
|
52
|
+
...(pageContext.config.Wrapper || [])].reverse()));
|
|
53
53
|
});
|
|
54
54
|
const renderWrappers = (i = 0) => {
|
|
55
|
-
let item = wrappers
|
|
55
|
+
let item = wrappers[i]; // Assumes reversed, and must access with `[i]` instead of `.at(i)` otherwise, wrapper's states are not persisted.
|
|
56
|
+
|
|
56
57
|
if (!item) return props.children;
|
|
57
58
|
if (typeof item !== "function") item = Passthrough;
|
|
58
59
|
return createComponent$1(item, {
|
|
@@ -61,7 +62,7 @@ function Wrapper(props) {
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
};
|
|
64
|
-
return memo(renderWrappers);
|
|
65
|
+
return memo(() => renderWrappers(0));
|
|
65
66
|
}
|
|
66
67
|
function Page() {
|
|
67
68
|
const pageContext = usePageContext();
|
|
@@ -49,10 +49,11 @@ function Wrapper(props) {
|
|
|
49
49
|
// Inner wrapping
|
|
50
50
|
...(pageContext.config.Layout || []),
|
|
51
51
|
// Outer wrapping
|
|
52
|
-
...(pageContext.config.Wrapper || [])]));
|
|
52
|
+
...(pageContext.config.Wrapper || [])].reverse()));
|
|
53
53
|
});
|
|
54
54
|
const renderWrappers = (i = 0) => {
|
|
55
|
-
let item = wrappers
|
|
55
|
+
let item = wrappers[i]; // Assumes reversed, and must access with `[i]` instead of `.at(i)` otherwise, wrapper's states are not persisted.
|
|
56
|
+
|
|
56
57
|
if (!item) return props.children;
|
|
57
58
|
if (typeof item !== "function") item = Passthrough;
|
|
58
59
|
return createComponent$1(item, {
|
|
@@ -61,7 +62,7 @@ function Wrapper(props) {
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
};
|
|
64
|
-
return renderWrappers();
|
|
65
|
+
return renderWrappers(0);
|
|
65
66
|
}
|
|
66
67
|
function Page() {
|
|
67
68
|
const pageContext = usePageContext();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike-solid",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"isbot-fast": "^1.2.0",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"@babel/preset-typescript": "^7.26.0",
|
|
18
18
|
"@brillout/release-me": "^0.4.2",
|
|
19
19
|
"@rollup/plugin-babel": "^6.0.4",
|
|
20
|
-
"@rollup/plugin-node-resolve": "^
|
|
20
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
21
21
|
"@types/node": "^22.10.1",
|
|
22
22
|
"babel-preset-solid": "^1.9.3",
|
|
23
|
-
"bumpp": "^9.9.
|
|
23
|
+
"bumpp": "^9.9.1",
|
|
24
24
|
"rollup": "^4.28.1",
|
|
25
25
|
"rollup-plugin-dts": "^6.1.1",
|
|
26
26
|
"solid-js": "^1.9.3",
|
|
27
27
|
"tslib": "^2.8.1",
|
|
28
28
|
"typescript": "^5.7.2",
|
|
29
|
-
"vike": "^0.4.
|
|
29
|
+
"vike": "^0.4.209",
|
|
30
30
|
"vite": "^6.0.3"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|