Skip to content

Commit 6dc07a8

Browse files
authored
fix(devtools): allow setting devtools hook after createApp (#13580)
1 parent a5379e2 commit 6dc07a8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

packages/runtime-core/src/devtools.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ function emit(event: string, ...args: any[]) {
4949
}
5050
}
5151

52-
let queued = false
5352
export function setDevtoolsHook(hook: DevtoolsHook, target: any): void {
54-
if (devtoolsNotInstalled || queued) {
55-
return
56-
}
5753
devtools = hook
5854
if (devtools) {
5955
devtools.enabled = true
@@ -70,7 +66,6 @@ export function setDevtoolsHook(hook: DevtoolsHook, target: any): void {
7066
// eslint-disable-next-line no-restricted-syntax
7167
!window.navigator?.userAgent?.includes('jsdom')
7268
) {
73-
queued = true
7469
const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
7570
target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [])
7671
replay.push((newHook: DevtoolsHook) => {

0 commit comments

Comments
 (0)