@b9g/crank 0.5.4 → 0.5.6
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/crank.cjs +4 -1
- package/crank.cjs.map +1 -1
- package/crank.js +4 -1
- package/crank.js.map +1 -1
- package/dom.cjs +2 -4
- package/dom.cjs.map +1 -1
- package/dom.js +2 -4
- package/dom.js.map +1 -1
- package/package.json +1 -1
- package/umd.js +6 -5
- package/umd.js.map +1 -1
package/crank.cjs
CHANGED
|
@@ -546,7 +546,7 @@ function diffChildren(renderer, root, host, ctx, scope, parent, children, hydrat
|
|
|
546
546
|
// cleanup remaining retainers
|
|
547
547
|
for (; oi < oldLength; oi++) {
|
|
548
548
|
const ret = oldRetained[oi];
|
|
549
|
-
if (typeof ret === "object"
|
|
549
|
+
if (typeof ret === "object") {
|
|
550
550
|
(graveyard = graveyard || []).push(ret);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -1768,6 +1768,9 @@ function resumePropsIterator(ctx) {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
// TODO: async unmounting
|
|
1770
1770
|
function unmountComponent(ctx) {
|
|
1771
|
+
if (ctx.f & IsUnmounted) {
|
|
1772
|
+
return;
|
|
1773
|
+
}
|
|
1771
1774
|
clearEventListeners(ctx);
|
|
1772
1775
|
const callbacks = cleanupMap.get(ctx);
|
|
1773
1776
|
if (callbacks) {
|