Skip to content

UI did not update with <For> #1233

Answered by lxsmnsyc
wcly asked this question in Q&A
Sep 19, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Although the array isn't the same, the items are still referentially the same. Since <For> memoizes UI by item, and the item isn't reactively mutated, the UI inside <For> wouldn't update. This is where createStore becomes handy.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wcly
Comment options

Answer selected by wcly
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants