feat: provide &Dependency to Lazy widget View

This commit is contained in:
Nick Senger 2023-01-11 07:45:36 -08:00
parent ca337b880f
commit 58bcc4404e
3 changed files with 10 additions and 6 deletions

View file

@ -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 {