Skip to content

Feature Request: Include Comprehensive Examples for Lifecycle Decorators #1

@dianannperla

Description

@dianannperla

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions