@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lukekaalim/act-recon
2
2
 
3
+ ## 3.0.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 2984273: Check if immediate child update is already handlded by some other system (avoiding double-rendering)
8
+
3
9
  ## 3.0.0-alpha.3
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-recon",
3
3
  "type": "module",
4
- "version": "3.0.0-alpha.3",
4
+ "version": "3.0.0-alpha.4",
5
5
  "main": "mod.ts",
6
6
  "dependencies": {
7
7
  "@lukekaalim/act": "^3.2.0"
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
- thread.pendingUpdates.push(...updates);
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