@lightningjs/solid
Advanced tools
Comparing version 0.14.2 to 0.14.3
@@ -97,2 +97,3 @@ import { createSignal, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack, splitProps } from 'solid-js'; | ||
this.splice(nodeIndexToRemove, 1); | ||
node.parent = undefined; | ||
} | ||
@@ -650,3 +651,5 @@ } | ||
destroy() { | ||
this.lng && renderer.destroyNode(this.lng); | ||
if (this.lng && !this.parent) { | ||
this.lng.destroy(); | ||
} | ||
} | ||
@@ -1223,5 +1226,8 @@ set style(values) { | ||
if (config.enableRecursiveRemoval) { | ||
removeChildrenNode(node); | ||
queueMicrotask(() => removeChildrenNode(node)); | ||
} else { | ||
node.destroy(); | ||
// Solid replacesNodes to move them (via insert and remove), | ||
// so we need to wait for the next microtask to destroy the node | ||
// in the event it gets a new parent. | ||
queueMicrotask(() => node.destroy()); | ||
} | ||
@@ -1228,0 +1234,0 @@ } |
@@ -48,4 +48,5 @@ /* | ||
this.splice(nodeIndexToRemove, 1); | ||
node.parent = undefined; | ||
} | ||
} | ||
} |
@@ -336,3 +336,5 @@ /* | ||
destroy() { | ||
this.lng && renderer.destroyNode(this.lng); | ||
if (this.lng && !this.parent) { | ||
this.lng.destroy(); | ||
} | ||
} | ||
@@ -339,0 +341,0 @@ set style(values) { |
@@ -79,6 +79,9 @@ /* | ||
if (config.enableRecursiveRemoval) { | ||
removeChildrenNode(node); | ||
queueMicrotask(() => removeChildrenNode(node)); | ||
} | ||
else { | ||
node.destroy(); | ||
// Solid replacesNodes to move them (via insert and remove), | ||
// so we need to wait for the next microtask to destroy the node | ||
// in the event it gets a new parent. | ||
queueMicrotask(() => node.destroy()); | ||
} | ||
@@ -85,0 +88,0 @@ } |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.14.2", | ||
"version": "0.14.3", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -56,4 +56,5 @@ /* | ||
this.splice(nodeIndexToRemove, 1); | ||
node.parent = undefined; | ||
} | ||
} | ||
} |
@@ -428,3 +428,5 @@ /* | ||
destroy() { | ||
this.lng && renderer.destroyNode(this.lng); | ||
if (this.lng && !this.parent) { | ||
this.lng.destroy(); | ||
} | ||
} | ||
@@ -431,0 +433,0 @@ |
@@ -88,5 +88,8 @@ /* | ||
if (config.enableRecursiveRemoval) { | ||
removeChildrenNode(node); | ||
queueMicrotask(() => removeChildrenNode(node)); | ||
} else { | ||
node.destroy(); | ||
// Solid replacesNodes to move them (via insert and remove), | ||
// so we need to wait for the next microtask to destroy the node | ||
// in the event it gets a new parent. | ||
queueMicrotask(() => node.destroy()); | ||
} | ||
@@ -93,0 +96,0 @@ } |
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
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
270703
4395