Skip to content

onBeforePatch and onAfterPatch hooks/events are not working on HandlerTypes.PATCH #573

@ozziest

Description

@ozziest

*Patch hooks and events are not working as expected.

Heres my model;

class Post extends Model {
  get handlers() {
    return [HandlerTypes.PATCH];
  }
}

Here is my hooks:

// app/Hooks/Post/onBeforePatch.ts
import { IBeforePatchContext } from "axe-api";

export default async ({}: IBeforePatchContext) => {
};
// app/Hooks/Post/onAfterPatch.ts
import { IAfterPatchContext } from "axe-api";

export default async ({}: IAfterPatchContext) => {

};

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnext-releaseThe feature will be released in the next releaseversion-patchIt is just a patch for the current version. It is not a new feature, nor a breaking change.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions