Skip to content

Need help with hashmap via signal #2336

Answered by ealmloff
katopz asked this question in Q&A
Discussion options

You must be logged in to vote

You need to clone kana.romaji before moving it into the closure. or clone maybe_kana:

onclick: {
    // Clone
    let romaji = kana.romaji.clone();
    // Then move the clone into the closure
    move || {kana_focus_state.set(romaji);}
}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by katopz
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