amplication icon indicating copy to clipboard operation
amplication copied to clipboard

Plugin: Add eventParams to the After event

Open yuval-hazaz opened this issue 3 years ago • 1 comments

Feature description

All after event get two parameters - dsgContext, and modules.

 after?: (
      dsgContext: DsgContext,
      modules: CreateAdminModulesParams["after"]
    ) => Module[];

We should also pass the eventParams to the "after" event since it may include data that will help the plugin developer.

Use case

for example, the developer should know which entity is current being used in the "AfterCreateController" event - this data is available in the eventParams in the "before" event - but it should also be available in the "after" event.

Are you willing to submit PR?

No response

yuval-hazaz avatar Sep 17 '22 08:09 yuval-hazaz

Approved By: Shimi Yuval

GreenMachine01 avatar Sep 19 '22 14:09 GreenMachine01