Skip to content

[Need Help] Encounter Rendering Error #3001

Closed Answered by rabbit19981023
rabbit19981023 asked this question in Q&A
Discussion options

You must be logged in to vote

oops, I just missed key attribute, it works pretty good now!

rsx! {
    for todo in &*todos {
        // [Wrong]
        Todo { todo: todo.clone() }

        // [Correct]
        Todo { key: "{todo.id}", todo: todo.clone() }
    }
}

Replies: 1 comment

Comment options

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