Skip to content

On idle trigger does not support providing an IdleDeadline #67187

@thePunderWoman

Description

@thePunderWoman

Which @angular/* package(s) are the source of the bug?

core

Description

Right now @defer(on idle) will fire requestIdleCallback, but there's no way to configure the second options parameter that allows for a configuration of a timeout. It would be great to add support for this. Something like @defer(on idle(300)) {... would be great to see. This would also require ensuring that this deadline is respected in the scheduling of the callback. So we'd want to look at the IdleDeadline for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimeopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions