Skip to content

Exported functions become "stale" on hot reload #43

Closed
@enyo

Description

@enyo

Describe the bug

When a component exposes a function with export const doStuff = () => { /* code */ } so that an outer component can invoke it, the code inside the exported function doesn't have access to the local variables anymore after reload.

Reproduction

https://svelte.dev/repl/5d2a100498f34c50ad9ce2ff2a4e3569?version=3.46.4

Logs

No response

System Info

macOS

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghmr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions