Skip to content

Commit

Permalink
fix(devtools): unmountApp not behind compile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 22, 2020
1 parent 3138f4b commit 6eb7fd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runtime-core/src/apiCreateApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,9 @@ export function createAppAPI<HostElement>(
unmount() {
if (isMounted) {
render(null, app._container)
devtoolsUnmountApp(app)
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
devtoolsUnmountApp(app)
}
} else if (__DEV__) {
warn(`Cannot unmount an app that is not mounted.`)
}
Expand Down

0 comments on commit 6eb7fd8

Please sign in to comment.