()
| 245 | let {rootId, onUpdate: onComputationUpdate, mode} = config |
| 246 | |
| 247 | let handler = () => { |
| 248 | let is_leaf = !comp.owned || comp.owned.length === 0 |
| 249 | let changed_structure = was_leaf !== is_leaf || !is_leaf || mode === TreeWalkerMode.DOM |
| 250 | was_leaf = is_leaf |
| 251 | onComputationUpdate(rootId, owner_to_update, changed_structure) |
| 252 | } |
| 253 | |
| 254 | observeComputationUpdate(comp, handler, $WALKER) |
| 255 | } |
no test coverage detected
searching dependent graphs…