(this: EffectNode)
| 221 | zone: null, |
| 222 | onDestroyFns: null, |
| 223 | run(this: EffectNode): void { |
| 224 | if (ngDevMode && isInNotificationPhase()) { |
| 225 | throw new Error(`Schedulers cannot synchronously execute watches while scheduling.`); |
| 226 | } |
| 227 | // We clear `setIsRefreshingViews` so that `markForCheck()` within the body of an effect will |
| 228 | // cause CD to reach the component in question. |
| 229 | const prevRefreshingViews = setIsRefreshingViews(false); |
| 230 | try { |
| 231 | runEffect(this); |
| 232 | } finally { |
| 233 | setIsRefreshingViews(prevRefreshingViews); |
| 234 | } |
| 235 | }, |
| 236 | |
| 237 | cleanup(this: EffectNode): void { |
| 238 | if (!this.cleanupFns?.length) { |
nothing calls this directly
no test coverage detected