Skip to content

[LiveComponent] in-view and tab-active modifiers for polling #995

Open
@kbond

Description

@kbond

From #102:

Future D) Polling enhancements: (1) poll less often when the browser tab is not active and (2) don't start polling until visible

<div
    {{ attributes }}
    data-poll="delay(500)|in-view|tab-active|$render" {# only poll when component is in viewport and browser tab is active #}
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    LiveComponentRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions