Reference

withCleanupScope

Cleanup scope helpers used by reactive DOM and tests.

Signature

function withCleanupScope<T>(owner: CleanupOwner | undefined, run: (): T): T