Skip to content

Commit

Permalink
feat: add effectScope API
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Oct 7, 2024
1 parent 8da5dac commit 430a509
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/effectScope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];

Expand Down

0 comments on commit 430a509

Please sign in to comment.