(node: WatchNode)
| 84 | } |
| 85 | |
| 86 | function destroyWatchNode(node: WatchNode) { |
| 87 | if (!isWatchNodeDestroyed(node)) { |
| 88 | consumerDestroy(node); // disconnect watcher from the reactive graph |
| 89 | node.cleanupFn(); |
| 90 | |
| 91 | // nullify references to the integration functions to mark node as destroyed |
| 92 | node.fn = null; |
| 93 | node.schedule = null; |
| 94 | node.cleanupFn = NOOP_CLEANUP_FN; |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | const run = () => { |
| 99 | if (node.fn === null) { |
no test coverage detected
searching dependent graphs…