@void/react 1.2.0 → 1.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.
|
@@ -2,7 +2,7 @@ import { a as RouterContext, i as ParamsContext, o as SharedContext, r as Naviga
|
|
|
2
2
|
import { n as setActionRouter } from "../action-4EvQppia.mjs";
|
|
3
3
|
import { n as DEFERRED_SHELL_END_ID } from "../deferred-shell-DOuP2YAo.mjs";
|
|
4
4
|
import React, { Suspense, startTransition, use, useCallback, useEffect, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useState, useTransition } from "react";
|
|
5
|
-
import { createPageNavigationEngine, createRouterFacade, idleNavigationState, isAbortError, isCallSiteActionError } from "void/pages-client";
|
|
5
|
+
import { createPageNavigationEngine, createRouterFacade, idleNavigationState, isAbortError, isCallSiteActionError, refreshPage } from "void/pages-client";
|
|
6
6
|
import { createRoot, hydrateRoot } from "react-dom/client";
|
|
7
7
|
//#region src/runtime/pages-client.ts
|
|
8
8
|
const deferredState = /* @__PURE__ */ new WeakMap();
|
|
@@ -158,11 +158,7 @@ function createRouter(engine) {
|
|
|
158
158
|
return scheduleVisit(normalizeUrl(url), options);
|
|
159
159
|
},
|
|
160
160
|
refresh(options = {}) {
|
|
161
|
-
return router
|
|
162
|
-
preserveState: true,
|
|
163
|
-
preserveScroll: true,
|
|
164
|
-
...options
|
|
165
|
-
});
|
|
161
|
+
return refreshPage(router, options);
|
|
166
162
|
},
|
|
167
163
|
prefetch(url, options = {}) {
|
|
168
164
|
return engine.prefetch(normalizeUrl(url), options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@void/react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "React pages, server rendering, forms, and navigation for Void.",
|
|
5
5
|
"homepage": "https://void.cloud",
|
|
6
6
|
"bugs": {
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"react-dom": "^19.3.1",
|
|
50
50
|
"vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
|
|
51
51
|
"vite-plus": "1.3.0",
|
|
52
|
-
"void": "1.2.
|
|
52
|
+
"void": "1.2.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"react": "^19.0.0",
|
|
56
56
|
"react-dom": "^19.0.0",
|
|
57
57
|
"vite": "^8.0.0",
|
|
58
|
-
"void": "1.2.
|
|
58
|
+
"void": "1.2.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "vp pack",
|