weifuwu 0.17.24 → 0.17.25
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/index.js +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -578,7 +578,7 @@ import chokidar from "chokidar";
|
|
|
578
578
|
import { useSyncExternalStore, createContext } from "react";
|
|
579
579
|
var fallbackT = (key, _params, fallback) => fallback ?? key;
|
|
580
580
|
var DEFAULT_CTX = { params: {}, query: {}, parsed: {}, prefs: {}, env: {}, t: fallbackT, user: {} };
|
|
581
|
-
var KEY = "
|
|
581
|
+
var KEY = "__WEIFUWU_CTX_STORE";
|
|
582
582
|
function getStore() {
|
|
583
583
|
if (typeof globalThis !== "undefined" && globalThis[KEY]) {
|
|
584
584
|
return globalThis[KEY];
|
package/dist/react.js
CHANGED
|
@@ -334,7 +334,7 @@ async function prefetchPage(href) {
|
|
|
334
334
|
import { useSyncExternalStore, createContext } from "react";
|
|
335
335
|
var fallbackT = (key, _params, fallback) => fallback ?? key;
|
|
336
336
|
var DEFAULT_CTX = { params: {}, query: {}, parsed: {}, prefs: {}, env: {}, t: fallbackT, user: {} };
|
|
337
|
-
var KEY = "
|
|
337
|
+
var KEY = "__WEIFUWU_CTX_STORE";
|
|
338
338
|
function getStore() {
|
|
339
339
|
if (typeof globalThis !== "undefined" && globalThis[KEY]) {
|
|
340
340
|
return globalThis[KEY];
|