()
| 313 | } |
| 314 | |
| 315 | function flush(): void { |
| 316 | try { |
| 317 | while (notifyIndex < queuedLength) { |
| 318 | const effect = queued[notifyIndex]!; |
| 319 | queued[notifyIndex++] = undefined; |
| 320 | run(effect); |
| 321 | } |
| 322 | } finally { |
| 323 | while (notifyIndex < queuedLength) { |
| 324 | const effect = queued[notifyIndex]!; |
| 325 | queued[notifyIndex++] = undefined; |
| 326 | effect.flags |= ReactiveFlags.Watching | ReactiveFlags.Recursed; |
| 327 | } |
| 328 | notifyIndex = 0; |
| 329 | queuedLength = 0; |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | function computedOper<T>(this: ComputedNode<T>): T { |
| 334 | const flags = this.flags; |
no test coverage detected
searching dependent graphs…