@lukekaalim/act-recon 3.0.0-alpha.3 → 3.0.0-alpha.4
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 +6 -0
- package/package.json +1 -1
- package/thread.ts +6 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/thread.ts
CHANGED
|
@@ -109,7 +109,12 @@ const updateWorkThread = (thread: WorkThread, update: Update, tree: CommitTree,
|
|
|
109
109
|
const [childRefs, updates] = calculateUpdates(ref, prevChildren, output.child);
|
|
110
110
|
|
|
111
111
|
thread.pendingEffects.push(...output.effects);
|
|
112
|
-
|
|
112
|
+
for (const update of updates) {
|
|
113
|
+
// if someone has already marked the update as needing rendering, assume
|
|
114
|
+
// that there is already an update in the stack to handle it.
|
|
115
|
+
if (!thread.mustRender.has(update.ref.id))
|
|
116
|
+
thread.pendingUpdates.push(update);
|
|
117
|
+
}
|
|
113
118
|
|
|
114
119
|
const commit = Commit.update(ref, next, childRefs);
|
|
115
120
|
|