-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
next.168 development mode and component snippets inside loop #12244
Comments
Don't know whether this is related and helps, but some problem with loops and snippets was introduced in next.162. It was different - everything worked fine in development (HMR) but was broken in production. Don't have full example, but something like this {#each data as row (row.id)}
<Row>
{#each columns as column (column.name)}
<Cell>
{column.name}
</Cell>
{/each}
</Row>
{/each} In production this ended with empty rows after changing |
isnt loop or if related |
For everyone experiencing this: you can disable hot module reloading through the |
closing as duplicate of #12243 |
Describe the bug
While next.168 fixed #12233, it introduced new problem in development mode.
Component's default snippet (haven't tried named snippets) keeps previous output and appends new one if component is inside loop and array is changed, and
{#each}
tag has key value. It works as expected without key value and in production mode.Reproduction
Simple component with default children snippet.
App code
Logs
No response
System Info
Severity
blocking all usage of svelte
The text was updated successfully, but these errors were encountered: