Skip to content

Commit

Permalink
Less diff [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Nov 28, 2024
1 parent cf8e0e4 commit 7501e3c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/reactivity/src/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ import {
} from './system'
import { warn } from './warning'

export enum EffectFlags {
ALLOW_RECURSE = 1 << 2,
PAUSED = 1 << 3,
NOTIFIED = 1 << 4,
STOP = 1 << 5,
}

export type EffectScheduler = (...args: any[]) => any

export type DebuggerEvent = {
Expand Down Expand Up @@ -50,6 +43,16 @@ export interface ReactiveEffectRunner<T = any> {
effect: ReactiveEffect
}

export enum EffectFlags {
/**
* ReactiveEffect only
*/
ALLOW_RECURSE = 1 << 2,
PAUSED = 1 << 3,
NOTIFIED = 1 << 4,
STOP = 1 << 5,
}

export class ReactiveEffect<T = any> implements IEffect, ReactiveEffectOptions {
nextNotify: IEffect | undefined = undefined

Expand Down

0 comments on commit 7501e3c

Please sign in to comment.