@stackflow/react
Advanced tools
Comparing version 0.20.0 to 0.20.1-alpha.6
@@ -391,2 +391,3 @@ "use strict"; | ||
// src/stackflow.tsx | ||
var isServer = typeof window === "undefined"; | ||
function parseActionOptions2(options) { | ||
@@ -438,4 +439,8 @@ if (!options) { | ||
const [getCoreStore, setCoreStore] = makeRef(); | ||
const Stack = (props) => { | ||
const Stack = import_react18.default.memo((props) => { | ||
const coreStore = (0, import_react18.useMemo)(() => { | ||
const prevCoreStore = getCoreStore(); | ||
if (!isServer && prevCoreStore) { | ||
return prevCoreStore; | ||
} | ||
const initialPushedEventsByOption = options.initialActivity ? [ | ||
@@ -478,3 +483,3 @@ (0, import_core7.makeEvent)("Pushed", { | ||
}); | ||
if (typeof window !== "undefined") { | ||
if (!isServer) { | ||
store.init(); | ||
@@ -492,3 +497,3 @@ } | ||
}))); | ||
}; | ||
}); | ||
Stack.displayName = "Stack"; | ||
@@ -495,0 +500,0 @@ return { |
{ | ||
"name": "@stackflow/react", | ||
"version": "0.20.0", | ||
"version": "0.20.1-alpha.6+1ef4ee7a", | ||
"license": "MIT", | ||
@@ -64,3 +64,3 @@ "exports": { | ||
}, | ||
"gitHead": "764a17cfd23ebdad801b4b58f67c53505149f4db" | ||
"gitHead": "1ef4ee7ab58729b844e2b4e3d864c14461b0478b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151151
2258
1