wip: clean up some things

This commit is contained in:
Jonathan Kelley committed 2022-11-30 23:54:30 -05:00
1 parent ba26b1001a
commit 3b166c9edd
64 files changed
+540 -599

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ pub fn use_state<T: 'static>(
let update_callback = cx.schedule_update();
let slot = Rc::new(RefCell::new(current_val.clone()));
let setter = Rc::new({
dioxus_core::to_owned![update_callback, slot];
to_owned![update_callback, slot];
move |new| {
{
let mut slot = slot.borrow_mut();