Skip to content

0.5->0.6 migration advice? #659

Answered by AaronErhardt
mock1328 asked this question in Q&A
Discussion options

You must be logged in to vote

I think in 0.5 template children accidentally "tainted" the scope of the entire view macro (because they were globally available, which made it impossible to refer to the children when using the same template twice). Now you should be able to access it like you would do in regular Rust: parent.child_name.

In you case, that would mean something like this:

                    connect_activate[
                        sender, usernames_box = ui.usernames_box.clone(), username_entry, sessions_box, session_entry
                    ]

Replies: 1 comment 1 reply

Comment options

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

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