Skip to content

Commit

Permalink
feat(reactive): remove reactive tracker default batch (#3052)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Apr 19, 2022
1 parent d1700ce commit 4a8760f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/reactive/src/tracker.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { ReactionStack } from './environment'
import { isFn } from './checkers'
import { Reaction } from './types'
import {
batchEnd,
batchStart,
disposeBindingReactions,
releaseBindingReactions,
} from './reaction'
import { disposeBindingReactions, releaseBindingReactions } from './reaction'

export class Tracker {
private results: any
Expand All @@ -28,13 +23,11 @@ export class Tracker {
if (ReactionStack.indexOf(this.track) === -1) {
releaseBindingReactions(this.track)
try {
batchStart()
ReactionStack.push(this.track)
this.results = tracker()
} finally {
ReactionStack.pop()
this.track._boundary++
batchEnd()
this.track._boundary = 0
}
}
Expand Down

0 comments on commit 4a8760f

Please sign in to comment.