Replies: 4 comments
-
Also I'm also facing this error when using the Checkbox or the Switch component:
I've updated the repository to demonstrate the issue, please note the page goes blank because of the error. This bug seems to be resolved in the newer versions of svelte according to this issue but still I'm facing it when using the Checkbox component or the Switch component: |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same issue when using Input OTP am i doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
The Slider component in my project eventually leads to a crash as the tab uses up to 5 gigs of RAM if I place the Slider component in a conditional const object = writable({ thingA: [50], thingB: true })
{#if object}
{#each Object.entries($object) as [thingName, thingValue]}
{#if Array.isArray(propValue) && typeof propValue !== 'boolean'}
<Slider bind:value={object[thingName]} other-attr />
{:else}
<!-- other code -->
{/if}
{/each}
{/if} |
Beta Was this translation helpful? Give feedback.
-
Have you tried using a key on that each block? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
As the title says, using the Slider component inside a form causes an infinite loop.
The browser output:

I'm using following this guide to create my form:
https://next.shadcn-svelte.com/docs/components/form
The code that causes the error:
Reproduction
stackblitz:
https://stackblitz.com/github/KryptXBSA/svelte-shadcn-slider-infinite-loop?file=src%2Froutes%2Fmy-form.svelte
github repo:
https://github.com/KryptXBSA/svelte-shadcn-slider-infinite-loop
Logs
System Info
Severity
annoyance
Beta Was this translation helpful? Give feedback.
All reactions