@solidjs/router
Advanced tools
Comparing version 0.10.7 to 0.10.8
@@ -60,3 +60,3 @@ import { createSignal, getOwner, onCleanup, sharedConfig, startTransition } from "solid-js"; | ||
let version; | ||
if (owner) { | ||
if (owner && !isServer) { | ||
version = createSignal(now, { | ||
@@ -74,3 +74,3 @@ equals: (p, v) => v - p < 50 // margin of error | ||
let res = cached[1]; | ||
if (!isServer && intent !== "preload") { | ||
if (intent !== "preload") { | ||
res = | ||
@@ -80,3 +80,3 @@ "then" in cached[1] | ||
: handleResponse(false)(cached[1]); | ||
intent === "navigate" && startTransition(() => revalidateSignals(cached[3], cached[0])); // update version | ||
!isServer && intent === "navigate" && startTransition(() => revalidateSignals(cached[3], cached[0])); // update version | ||
} | ||
@@ -83,0 +83,0 @@ return res; |
@@ -821,3 +821,3 @@ import { isServer, getRequestEvent, createComponent as createComponent$1, delegateEvents, spread, mergeProps as mergeProps$1, template } from 'solid-js/web'; | ||
let version; | ||
if (owner) { | ||
if (owner && !isServer) { | ||
version = createSignal(now, { | ||
@@ -837,5 +837,5 @@ equals: (p, v) => v - p < 50 // margin of error | ||
let res = cached[1]; | ||
if (!isServer && intent !== "preload") { | ||
if (intent !== "preload") { | ||
res = "then" in cached[1] ? cached[1].then(handleResponse(false), handleResponse(true)) : handleResponse(false)(cached[1]); | ||
intent === "navigate" && startTransition(() => revalidateSignals(cached[3], cached[0])); // update version | ||
!isServer && intent === "navigate" && startTransition(() => revalidateSignals(cached[3], cached[0])); // update version | ||
} | ||
@@ -842,0 +842,0 @@ |
@@ -9,3 +9,3 @@ { | ||
"license": "MIT", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"homepage": "https://github.com/solidjs/solid-router#readme", | ||
@@ -12,0 +12,0 @@ "repository": { |
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
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
148965