Skip to content

Commit

Permalink
Add note about LuigiAfterInit (#3151)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandra-simeonova authored Feb 8, 2023
1 parent 0b7a25a commit fe3a2a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/lifecycle-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ You can use any of the Luigi lifecycle hooks by adding additional setup to the r

### luigiAfterInit()

This method will be called after [Luigi.setConfig({})](luigi-core-api.md#setconfig) is executed.
This method will be called after [Luigi.setConfig({})](luigi-core-api.md#setconfig) is executed.

Keep in mind that `luigiAfterInit`is only triggered after the first `setConfig` instance. If you need it to be fired again, you can use [Luigi.reset()](luigi-core-api.md#reset) to trigger a new Luigi re-initialization.

0 comments on commit fe3a2a3

Please sign in to comment.