|
|
@@ -72,7 +72,11 @@ import { createHydrationFunctions, RootHydrateFunction } from './hydration'
|
|
|
import { invokeDirectiveHook } from './directives'
|
|
|
import { startMeasure, endMeasure } from './profiling'
|
|
|
import { ComponentPublicInstance } from './componentPublicInstance'
|
|
|
-import { devtoolsComponentRemoved, devtoolsComponentUpdated } from './devtools'
|
|
|
+import {
|
|
|
+ devtoolsComponentAdded,
|
|
|
+ devtoolsComponentRemoved,
|
|
|
+ devtoolsComponentUpdated
|
|
|
+} from './devtools'
|
|
|
import { initFeatureFlags } from './featureFlags'
|
|
|
import { isAsyncWrapper } from './apiAsyncComponent'
|
|
|
|
|
|
@@ -1412,6 +1416,10 @@ function baseCreateRenderer(
|
|
|
}
|
|
|
instance.isMounted = true
|
|
|
|
|
|
+ if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
|
|
+ devtoolsComponentAdded(instance)
|
|
|
+ }
|
|
|
+
|
|
|
// #2458: deference mount-only object parameters to prevent memleaks
|
|
|
initialVNode = container = anchor = null as any
|
|
|
} else {
|