the DOM won't update even signal was changed? #2044
maxpayne2046
started this conversation in
General
Replies: 2 comments 6 replies
-
The error is in toggleTodo. You're supposed to do it like this: setTodos(todos.findIndex(t => t.id === id), 'completed', (c) => !c); |
Beta Was this translation helpful? Give feedback.
5 replies
-
const toggleTodo = (id) => { finally It works. have to remove old object and new one,can't simplely dirty the old data. thanks alex. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i am start learning SolidJS, I try many many times, but don't know while toggle che checkbox , the DOM won't update.
Beta Was this translation helpful? Give feedback.
All reactions