Skip to content

Hooks should run on non-enabled methods #3457

@AshotN

Description

@AshotN

Steps to reproduce

Discord discussion

https://codesandbox.io/p/devbox/feathers-custom-service-hooks-8m28r3?file=%2Fsrc%2Fapp.ts%3A27%2C22

export const customMethods = ['enabledMethod'] as const
...
//BEFORE ALL is called with this
app.service('custom').enabledMethod()
//But not this
app.service('custom').notEnabledMethod()

Expected behavior

Ideally hooks should run on all methods

Actual behavior

Hooks are only ran on enabled methods

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