Skip to content

What would you say that $effect.tracking is for? #14329

@webJose

Description

@webJose

Describe the bug

I'm writing this as a bug, but perhaps it is not. Long story short: $effect.tracking() returns false during component initialization, but during component initialization, effect placement is valid. Up to 1 minute ago, I have always thought of $effect.tracking() as the one tool I need to know if an effect can be set up. This discovery has shaken this knowledge away from me.

If this is not a bug: Would you still say that $effect.tracking is the only tool at our disposal to safely set effects up? Because then how do we detect component initialization?

Reproduction

Not needed, I suppose?

Logs

No response

System Info

REPL

Severity

annoyance

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