Skip to content

signal-effects possible footgun #874

@JoviDeCroock

Description

@JoviDeCroock

In the effect hook counter-parts we will flush all pending effects and cleanups either after the animation-frame or when the next render starts. Theoretically if we'd have an external update or update from a layout-effect which triggers a render of a component with pending effects we flush the effects as otherwise we potentially schedule conflicting effects.

We should consider whether it's worth solving this for signal-based effects as well, where we flush in options._render if the component renders again.

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