Skip to content

Commit 3662836

Browse files
authored
fix(devtools): call devtools:initialized hook after all modules run (#919)
1 parent ddb7547 commit 3662836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/devtools/src/module-main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now()
240240

241241
await Promise.all(integrations)
242242

243-
await nuxt.callHook('devtools:initialized', {
243+
nuxt.hook('modules:done', () => nuxt.callHook('devtools:initialized', {
244244
version,
245245
packagePath: packageDir,
246246
isGlobalInstall: isGlobalInstall(),
247-
})
247+
}))
248248

249249
const isMac = os.platform() === 'darwin'
250250

0 commit comments

Comments
 (0)