Feature Request: Comprehensive Examples for Lifecycle Decorators
Overview
The README mentions several lifecycle decorators (@ctx.refresh, @ctx.after, @ctx.cleanup) but does not provide examples demonstrating their usage. Including examples would greatly enhance the understanding of these features for new users.
Suggested Enhancements
- Add code snippets that illustrate how to use
@ctx.after and @ctx.cleanup in a practical context.
- Provide brief explanations of scenarios where each lifecycle decorator would be effectively utilized, such as cleanup tasks or operations to perform after a component updates.
Benefit
By adding this information, users will have a clearer guidance on how to manage component lifecycle events, which is crucial for developing robust applications using Crank.py.