Open fbzz opened 10 months ago
since you are modifying the original array with the splice
, I think signal will trigger the re-render. can you try remove the todos.value = [...todos.value]
? or try with toSpliced
.
Same issue here, when you init signal with an empty array
Can you provide stackblitz repro to check?
Btw, you should not mutate values of signals. Signals doesn't reacting on mutations. Use .toSpliced
So using react with vite, we can even use the example from preact, the first update will work, and after that it will stop