Add Official Lifecycle Hooks / Signals for Component Render & Method Calls #784
JohananOppongAmoateng
started this conversation in
General
Replies: 1 comment
-
|
This makes sense to me, I never thought about using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve been experimenting with building a Debug Toolbar panel for Unicorn (on top of Django Debug Toolbar) to visualize:
Currently, the only way to achieve this is by monkey-patching:
UnicornView.renderUnicornView.callWhile this works, it’s fragile and tightly coupled to internal implementation details.
Proposal
Introduce official lifecycle hooks (or Django signals) for key component events.
For example:
Component Rendered
Triggered after a component is rendered.
Sent with:
Component Method Called
Triggered after a component method is invoked.
Sent with:
And in exception cases:
Beta Was this translation helpful? Give feedback.
All reactions