What is the call order for nuxt hooks?

I'm currently try to register a custom runtime hook callback. The hook itself is called in a module/composable but uses nuxt's hooking system for routing the hooks. Is there any documentation how hooks are registered? I assumed that hooks registered through the object plugin style of registration are registered before any plugins are called, even the internal ones. Is there any documentation what the call order of hooks is supposed to be? Do I always need to depend on "dependsOn" or even the registration order to make sure my hooks are registered before a plugin calls them?
2 Replies
Hendrik Heil
Hendrik HeilOP7mo ago
I've created a discussion from what I found in the code
Hendrik Heil
Hendrik HeilOP7mo ago
GitHub
Register nuxt plugin hooks before running plugins · nuxt nuxt · Dis...
The problem Currently, plugin execution order is defined either through name based sorting, explicit order or using append: true in addPlugin. There is also a feature to allow plugins to explicitly...
Want results from more Discord servers?
Add your server