Comparing version
{ | ||
"name": "solid-js", | ||
"description": "A declarative JavaScript library for building user interfaces.", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"author": "Ryan Carniato", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -570,2 +570,6 @@ import { | ||
const create = () => { | ||
if (sharedConfig.context) | ||
throw new Error( | ||
"Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration." | ||
); | ||
const t = document.createElement("template"); | ||
@@ -731,4 +735,4 @@ t.innerHTML = html; | ||
if (!sharedConfig.context || !(node = sharedConfig.registry.get((key = getHydrationKey())))) { | ||
if (sharedConfig.context) console.warn("Unable to find DOM nodes for hydration key:", key); | ||
if (!template) throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key); | ||
if (sharedConfig.context) | ||
throw new Error(`Hydration Mismatch. Unable to find DOM nodes for hydration key: ${key}`); | ||
return template(); | ||
@@ -735,0 +739,0 @@ } |
@@ -13,4 +13,3 @@ import { | ||
onCleanup, | ||
splitProps, | ||
$DEVCOMP | ||
splitProps | ||
} from "solid-js"; | ||
@@ -731,4 +730,2 @@ export { | ||
if (!sharedConfig.context || !(node = sharedConfig.registry.get((key = getHydrationKey())))) { | ||
if (sharedConfig.context) console.warn("Unable to find DOM nodes for hydration key:", key); | ||
if (!template) throw new Error("Unrecoverable Hydration Mismatch. No template for key: " + key); | ||
return template(); | ||
@@ -938,3 +935,3 @@ } | ||
current = value; | ||
} else console.warn(`Unrecognized value. Skipped inserting`, value); | ||
} else; | ||
return current; | ||
@@ -1102,5 +1099,2 @@ } | ||
case "function": | ||
Object.assign(component, { | ||
[$DEVCOMP]: true | ||
}); | ||
return untrack(() => component(others)); | ||
@@ -1107,0 +1101,0 @@ case "string": |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
837493
-0.06%25789
-0.03%