T
TanStack6mo ago
ratty-blush

Excessive rerenders with SolidJS and classList

https://stackblitz.com/edit/solidjs-templates-zqhzdfcv?file=src%2Findex.tsx Open the preview in a new tab and open up the console. Click and then blur the input field. Console logs 10 rerenders initially and then 4 on each blur. Removing the name attribute fixes the issue. Am I missing something silly? Otherwise I'll post an issue
1 Reply
conscious-sapphire
conscious-sapphire5mo ago
facing this issue too, basically makes tanstack form unusable with solidjs. created https://github.com/TanStack/form/issues/1405 for this
GitHub
[SolidJS] handleChange triggers reactions of other fields 5 times ...
Describe the bug Changing the value of a field seems to trigger reactions of all other observers as well, causing every field to trigger effects 5 times. Your minimal, reproducible example https://...

Did you find this page helpful?