(
root_id, owner, changed_structure,
)
| 58 | let shouldUpdateAllRoots = true |
| 59 | |
| 60 | const onComputationUpdate: walker.ComputationUpdateHandler = ( |
| 61 | root_id, owner, changed_structure, |
| 62 | ) => { |
| 63 | // separate the callback from the computation |
| 64 | queueMicrotask(() => { |
| 65 | if (!props.enabled()) return |
| 66 | if (changed_structure) { |
| 67 | let owner_to_update = getClosestIncludedOwner(owner, treeWalkerMode) ?? owner |
| 68 | updateOwner(owner_to_update, root_id) |
| 69 | } |
| 70 | let id = getSdtId(owner, ObjectType.Owner) |
| 71 | props.onNodeUpdate(id) |
| 72 | }) |
| 73 | } |
| 74 | |
| 75 | function forceFlushRootUpdateQueue(): void { |
| 76 |
no test coverage detected
searching dependent graphs…