Browse Source

📝 Mention in docs that subapps don't fire events (#1554)

Co-authored-by: Sebastián Ramírez <[email protected]>
pull/1576/head
Andrew 5 years ago
committed by GitHub
parent
commit
d63475bb7d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docs/en/docs/advanced/events.md

3
docs/en/docs/advanced/events.md

@ -4,6 +4,9 @@ You can define event handlers (functions) that need to be executed before the ap
These functions can be declared with `async def` or normal `def`.
!!! warning
Only event handlers for the main application will be executed, not for [Sub Applications - Mounts](./sub-applications.md){.internal-link target=_blank}.
## `startup` event
To add a function that should be run before the application starts, declare it with the event `"startup"`:

Loading…
Cancel
Save