vike-react 0.2.0-commit-af9b3c5 → 0.2.1
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.
@@ -8,7 +8,7 @@ declare function PageContextProvider({ pageContext, children }: {
|
|
8
8
|
}): JSX.Element;
|
9
9
|
/** Access the pageContext from any React component */
|
10
10
|
declare function usePageContext(): (Partial<{
|
11
|
-
Page:
|
11
|
+
Page: unknown;
|
12
12
|
routeParams: Record<string, string>;
|
13
13
|
config: import("vite-plugin-ssr/dist/esm/shared/page-configs/Config/PageContextConfig.js").PageContextConfig;
|
14
14
|
configEntries: import("vite-plugin-ssr/dist/esm/shared/getPageFiles/getExports.js").ConfigEntries;
|
@@ -23,7 +23,7 @@ declare function usePageContext(): (Partial<{
|
|
23
23
|
url: string;
|
24
24
|
pageExports: Record<string, unknown>;
|
25
25
|
}> & Pick<{
|
26
|
-
Page:
|
26
|
+
Page: unknown;
|
27
27
|
routeParams: Record<string, string>;
|
28
28
|
config: import("vite-plugin-ssr/dist/esm/shared/page-configs/Config/PageContextConfig.js").PageContextConfig;
|
29
29
|
configEntries: import("vite-plugin-ssr/dist/esm/shared/getPageFiles/getExports.js").ConfigEntries;
|
@@ -6,7 +6,6 @@ let root;
|
|
6
6
|
async function onRenderClient(pageContext) {
|
7
7
|
const page = getPageElement(pageContext);
|
8
8
|
const container = document.getElementById('page-view');
|
9
|
-
pageContext.isHydration;
|
10
9
|
if (container.innerHTML !== '' && pageContext.isHydration) {
|
11
10
|
root = ReactDOM.hydrateRoot(container, page);
|
12
11
|
}
|
package/dist/renderer/types.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vike-react",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.1",
|
4
4
|
"type": "module",
|
5
5
|
"main": "./dist/renderer/+config.js",
|
6
6
|
"types": "./dist/renderer/+config.d.ts",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"react": "18.x.x",
|
22
22
|
"react-dom": "18.x.x",
|
23
23
|
"vite": "^4.3.8",
|
24
|
-
"vite-plugin-ssr": "^0.4.
|
24
|
+
"vite-plugin-ssr": "^0.4.142"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@brillout/release-me": "^0.1.7",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"react": "^18.0.0",
|
32
32
|
"react-dom": "^18.0.0",
|
33
33
|
"typescript": "^5.0.2",
|
34
|
-
"vite-plugin-ssr": "0.4.
|
34
|
+
"vite-plugin-ssr": "^0.4.142"
|
35
35
|
},
|
36
36
|
"typesVersions": {
|
37
37
|
"*": {
|