Skip to content

Indexed. Use of moved value #515

Answered by ghost
ghost asked this question in Q&A
Oct 27, 2022 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Is it ok to use create_ref like this?

Indexed(
    iterable=values,
    view=|cx, value| {
        let value = create_ref(cx, value);
        view! { cx,
            div(data-value=value.foo) { (value.foo) }
        }
    }
)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@lukechu10
Comment options

@ghost
Comment options

@lukechu10
Comment options

Answer selected by lukechu10
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants