Skip to content

removeXxx should return the removed hooks #113

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions