Skip to content

Re-order taps after tap function is called to guarantee old taps are in correct order #135

Open
@soc221b

Description

@soc221b

Suppose we have two plugins to be tapped:

The following example is WRONG. Please see this comment

hook.tap({
  name: 'a',
  before: 'b'
}, () => {})

hook.tap({
  name: 'b',
}, () => {})

Actual: taps are [{ name: 'b', ... }, { name: 'a', ... }].
Expected: taps should be [{ name: 'a', ...}, { name: 'b', ... }].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions