Skip to content

Commit

Permalink
First structure flush should update all roots (fixes #296)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Dec 18, 2024
1 parent 366f334 commit 7ee9f7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/big-pugs-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@solid-devtools/debugger": patch
---

First structure flush should update all roots (instead of sending partial update) - Fixes #296
3 changes: 2 additions & 1 deletion packages/debugger/src/structure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function createStructure(props: {
/** root ids correcponding to owners in the update queue */
const ownerRoots = new Map<Solid.Owner, NodeID>()
const removedRoots = new Set<NodeID>()
let shouldUpdateAllRoots = false
let shouldUpdateAllRoots = true

const onComputationUpdate: ComputationUpdateHandler = (
rootId,
Expand All @@ -74,6 +74,7 @@ export function createStructure(props: {
}

function forceFlushRootUpdateQueue(): void {

if (props.enabled()) {
const updated: StructureUpdates['updated'] = {}

Expand Down

0 comments on commit 7ee9f7f

Please sign in to comment.