Problems with Asynchronous Svelte #3668
Replies: 2 comments
-
|
I have similar problem with Tree View. i get error in browser console: I'm using basic Examples from doc. With: |
Beta Was this translation helpful? Give feedback.
-
|
I don't have problems with zag just with ark components. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.sveltefeature 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
Ark UI Version
5.10.1
Framework
Browser
Google Chrome
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions