Skip to content

Reactivity documentation incorrect #82

@kokybo

Description

@kokybo

In the reactivity documentation manual page refresh is controlled described as controller by trigger_refresh. The Page and Component classes do not appear to have this method

class MyComponent(Component):
    # The UI will no longer refresh on state changes
    redraw_on_changes = False

    def something_happened(self):
        # This can be called to manually refresh this component and its children
        self.trigger_redraw()

        # Or, you can redraw the whole page
        self.page.trigger_redraw()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions