fix(devtools): unmountApp not behind compile flag
This commit is contained in:
parent
3138f4b42f
commit
6eb7fd8333
@ -251,7 +251,9 @@ export function createAppAPI<HostElement>(
|
||||
unmount() {
|
||||
if (isMounted) {
|
||||
render(null, app._container)
|
||||
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||
devtoolsUnmountApp(app)
|
||||
}
|
||||
} else if (__DEV__) {
|
||||
warn(`Cannot unmount an app that is not mounted.`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user