Skip to content

$effect.root not firing in .svelte.js file #14544

@jhwz

Description

@jhwz

Describe the bug

When I have an $effect.root in a .svelte.js/ts file, that effect doesn't appear to properly fire when dependant state changes.

Reproduction

https://svelte.dev/playground/f4917869686e4d78901a3b3d3fd0a617?version=5.5.3

Would expect to see the console.log firing

Logs

No response

System Info

Not relevant, see playground

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