wip: somewhat working suspense

This commit is contained in:
Evan You
2019-09-09 16:00:50 -04:00
parent 1dc9d81e3e
commit 02bb156314
5 changed files with 216 additions and 84 deletions

View File

@@ -32,7 +32,12 @@ export const nodeOps = {
el.textContent = text
},
parentNode: (node: Node): Node | null => node.parentNode,
parentNode: (node: Node): Node | null => {
if (!node) {
debugger
}
return node.parentNode
},
nextSibling: (node: Node): Node | null => node.nextSibling,