unjs / unjs/hookable

Hooks need a priority

Open
#104 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
960
Forks
43
Avg merge
19m
Merged PRs (30d)
1

Description

Describe the feature

Coming from nuxt, I'm a bit baffled there is no way to set a priority to hooks

So they kinda execute in the order they want based on if they are in a plugin, or in the main nuxt config

I would like my config hooks to execute after a plugin hook but right now this doesn't seem possible

Additional information
  • Would you be willing to help implement this feature?

Similar to #98

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the hook registration and execution entry points in the repository, then review the related issue #98. The issue does not name files, tests, or an API design; completion would require agreeing on priority semantics and demonstrating that configured hook priorities control execution order.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.