Skip to content

[LiveComponent] Cancel polling #382

Closed
@easis

Description

@easis

Hi,
I have a component with data-polling because I need to wait for data but once I have the data there is no way to stop/cancel polling. I've tried conditionally printing the data-polling attr with a prop like this with no success:

<div {{ attributes }} {{ not this.isCompleted? 'data-polling="delay(1000)|check"' }}>
    ...
</div>

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