Skip to content

removeXxx should return the removed hooks #113

@trydofor

Description

@trydofor

Describe the feature

From Nuxt, i want to change the order of the hooks at the top level,
need a way to get the hooks, then sort them or add them again.

Something like this,

  • getHooks(name:string):HookCallback[]
  • removeXxx(xxx):HookCallback[]| HookCallback

and more,

the HookCallback can return boolean,
like Vue's onErrorCaptured hook does,
can return false to prevent other hooks from calling.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions