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
|
|
@ -33,7 +33,7 @@ use std::hash::Hash;
|
|||
|
||||
pub fn lazy<'a, Message, Renderer, Dependency, View>(
|
||||
dependency: Dependency,
|
||||
view: impl Fn() -> View + 'a,
|
||||
view: impl Fn(&Dependency) -> View + 'a,
|
||||
) -> Lazy<'a, Message, Renderer, Dependency, View>
|
||||
where
|
||||
Dependency: Hash + 'a,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue