diff --git a/lib/effectScope.ts b/lib/effectScope.ts index 6235ce0..b4be6e2 100644 --- a/lib/effectScope.ts +++ b/lib/effectScope.ts @@ -2,6 +2,10 @@ import { Subscriber } from './system'; export let currentEffectScope: EffectScope | undefined = undefined; +export function effectScope() { + return new EffectScope(); +} + export class EffectScope { subs: Subscriber[] = [];