fix(devtools): send instance to devtools when it's mounted instead of created
This commit is contained in:
@@ -56,7 +56,6 @@ import {
|
||||
markAttrsAccessed
|
||||
} from './componentRenderUtils'
|
||||
import { startMeasure, endMeasure } from './profiling'
|
||||
import { devtoolsComponentAdded } from './devtools'
|
||||
|
||||
export type Data = Record<string, unknown>
|
||||
|
||||
@@ -486,10 +485,6 @@ export function createComponentInstance(
|
||||
instance.root = parent ? parent.root : instance
|
||||
instance.emit = emit.bind(null, instance)
|
||||
|
||||
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||
devtoolsComponentAdded(instance)
|
||||
}
|
||||
|
||||
return instance
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user