Introduce weak_handle methods on ModelContext and ViewContext
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
29b616f4cc
commit
4cc1556ca4
7 changed files with 21 additions and 13 deletions
|
@ -42,7 +42,7 @@ impl Select {
|
|||
render_item: F,
|
||||
) -> Self {
|
||||
Self {
|
||||
handle: cx.handle().downgrade(),
|
||||
handle: cx.weak_handle(),
|
||||
render_item: Box::new(render_item),
|
||||
selected_item_ix: 0,
|
||||
item_count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue