feat: provide &Dependency to Lazy widget View
This commit is contained in:
parent
ca337b880f
commit
58bcc4404e
3 changed files with 10 additions and 6 deletions
|
|
@ -167,7 +167,7 @@ impl Sandbox for App {
|
|||
}
|
||||
|
||||
fn view(&self) -> Element<Message> {
|
||||
let options = lazy(self.version, || {
|
||||
let options = lazy(self.version, |_| {
|
||||
let mut items: Vec<_> = self.items.iter().cloned().collect();
|
||||
|
||||
items.sort_by(|a, b| match self.order {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue