Comparing version 0.3.2 to 0.3.3
@@ -49,6 +49,14 @@ import {augmentor} from 'dom-augmentor'; | ||
let update = false; | ||
const updateEntry = (entry, node) => { | ||
if (node !== entry.node) { | ||
if (entry.node) | ||
const updateEntry = (entry, node, isHole) => { | ||
const curr = entry.node; | ||
if (node !== curr) { | ||
if (curr) { | ||
update = true; | ||
if (isHole) { | ||
// TODO: fix wired fragments too | ||
const {parentNode} = curr; | ||
if (parentNode) | ||
parentNode.replaceChild(node, curr); | ||
} | ||
} | ||
entry.node = node; | ||
@@ -62,6 +70,6 @@ } | ||
unrollHole(info, hole); | ||
updateEntry(entry, view(entry, hole)); | ||
updateEntry(entry, view(entry, hole), true); | ||
} | ||
else | ||
updateEntry(entry, hole); | ||
updateEntry(entry, hole, false); | ||
try { return entry.node; } | ||
@@ -68,0 +76,0 @@ finally { |
{ | ||
"name": "uland", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"main": "./cjs/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -11,3 +11,7 @@ # 🦄 <em>µ</em>land | ||
### Announcement | ||
Are you looking for something even more similar to *React*? Then don't miss [🐪 kaboobie](https://github.com/WebReflection/kaboobie/#readme) out! | ||
## API | ||
@@ -14,0 +18,0 @@ |
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
146167
1586
43