Skip to content

Attachment in Async / Await Component not working #16627

@jere2101

Description

@jere2101

Describe the bug

In my App (in Dev Mode) i experienced that my attachement didn't trigger when the node was added to the DOM. Only after the component refreshed ( from HMR i guess ) the attachment triggered and in my case rendered a map.

I have a small repl where it doesn't work either but i don't know if async is activated on the Svelte Playground. Maybe this is the expected output and i'm doing something wrong in the repl.

Thanks for your help ♥️

Reproduction

https://svelte.dev/playground/8fe0eb6dbe8943b5ba057de9b6259ecb?version=latest

System Info

svelte: 5.38.1

Severity

blocking all usage of svelte

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions