@lukekaalim/act-backstage 1.2.0 → 1.2.1
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/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/space.ts +1 -16
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/space.ts
CHANGED
|
@@ -59,7 +59,7 @@ export const createSimpleRenderSpace = <T, R extends string | Symbol>(
|
|
|
59
59
|
if (node && !ignoreFirst)
|
|
60
60
|
return [node];
|
|
61
61
|
const commit = tree.commits.get(id);
|
|
62
|
-
if (!commit
|
|
62
|
+
if (!commit)
|
|
63
63
|
return [];
|
|
64
64
|
if (commit.element.type === act.primitiveNodeTypes.null)
|
|
65
65
|
return [];
|
|
@@ -146,21 +146,6 @@ export const createSimpleRenderSpace = <T, R extends string | Symbol>(
|
|
|
146
146
|
if (!node)
|
|
147
147
|
continue;
|
|
148
148
|
args.update(node, delta.next.element, delta.prev.element);
|
|
149
|
-
|
|
150
|
-
if (delta.prev.suspended !== delta.next.suspended) {
|
|
151
|
-
const parent = findParent(delta.ref);
|
|
152
|
-
const parentNode = parent && parent.node;
|
|
153
|
-
if (parentNode) {
|
|
154
|
-
needsReorder.add(parent.id)
|
|
155
|
-
}
|
|
156
|
-
console.log('altering suspention type', node, parentNode, delta.next)
|
|
157
|
-
if (!parent || parentNode) {
|
|
158
|
-
if (!delta.next.suspended && args.link)
|
|
159
|
-
args.link(node, parentNode);
|
|
160
|
-
if (delta.next.suspended && args.unlink)
|
|
161
|
-
args.unlink(node, parentNode);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
149
|
}
|
|
165
150
|
for (const delta of deltas.created) {
|
|
166
151
|
const node = nodeByCommit.get(delta.ref.id);
|