-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Each data is duplicated when using transitions in await syntax #5815
Comments
after playing around in the repl
current behavior(to my understanding):
why and when does duplication happen? promise is usually fetching and doesn't resolve before outro ends but when it resolves before outro ends so, when the promise holder gets a new promise i hope this makes sense to you and helps track the bug |
This is fixed in 3.31.2 - https://svelte.dev/repl/99c98342054542ca9c9a82f97c0f200c?version=3.31.2 |
Describe the bug
I try to use transitions in each of my data ({#each}) that I get after my Promise resolves. But when I re-assign it to the variable that holds the Promise, the displayed data actually increases.
Discord link => https://discord.com/channels/457912077277855764/653341885674553345/791014063496101898
svelte-bug.mp4
Logs
Nothing shows in the console
To Reproduce
https://svelte.dev/repl/99c98342054542ca9c9a82f97c0f200c?version=3.31.0
https://github.com/donnisnoni/svelte-127253y6123-bug/blob/bug/src/views/admin/rayon/Index.svelte#L54-L75
https://github.com/donnisnoni/svelte-127253y6123-bug/blob/bug/src/store/rayon.js#L22-L34
Expected behavior
The data is not duplicated/increased
Information about my Svelte project:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: