perf(reactivity): avoid triggering re-render if computed value did not change
This commit is contained in:
@@ -2,6 +2,10 @@ import { ErrorCodes, callWithErrorHandling } from './errorHandling'
|
||||
import { isArray } from '@vue/shared'
|
||||
import { ComponentInternalInstance, getComponentName } from './component'
|
||||
import { warn } from './warning'
|
||||
import { setComputedScheduler } from '@vue/reactivity'
|
||||
|
||||
// set scheduler for computed
|
||||
setComputedScheduler(queueJob)
|
||||
|
||||
export interface SchedulerJob extends Function {
|
||||
id?: number
|
||||
|
||||
Reference in New Issue
Block a user