bugs: fix web list issue

This commit is contained in:
Jonathan Kelley committed 2021-10-10 22:27:08 -04:00
1 parent 4a0bb8cf84
commit da4423c141
8 files changed
+112 -48

No files matched your search

+2 -2
View File
@@ -121,8 +121,8 @@ impl<'a, T: 'static> UseState<'a, T> {
self.inner.wip.borrow_mut()
}
pub fn classic(self) -> (&'a T, &'a Rc<dyn Fn(T)>) {
todo!()
pub fn classic(self) -> (&'a T, Rc<dyn Fn(T)>) {
(&self.inner.current_val, self.setter())
}
pub fn setter(&self) -> Rc<dyn Fn(T)> {