Skip to content

Problems with Asynchronous Svelte #3651

@h4ckedneko

Description

@h4ckedneko

Description

Hello, first of all thank you for creating this wonderful UI library.

I have created an application shell component that serves as the main layout for the pages of my app instead of utilizing the +layout.svelte feature of SvelteKit because I want to pass stuffs from page to shell/layout like breadcrumbs, current app, and current tab, which you can easily do with that setup.

The problem occurs when my application shell uses the menu or popover component from ark. When navigating to a page the second time, the current page does not unmount and the new page gets appended to the bottom. This only happens when you use the experimental async mode in Svelte.

Link to Reproduction (or Detailed Explanation)

https://stackblitz.com/edit/xbpxoa3j?file=src%2Flib%2Fcomponents%2Fshell.svelte

Steps to Reproduce

  1. Go to about page
  2. Go back to home

Ark UI Version

5.10.1

Framework

  • React
  • Solid
  • Vue
  • Svelte

Browser

Google Chrome

Additional Information

No response

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