use dioxus_core::prelude::*; fn main() {} const App: FC<()> = |cx| { // create a new future let _fut = cx.use_hook( || { // async { loop {} } // Box::pin(async { loop {} }) as Pin>> }, |f| f, |_| {}, ); // let g = unsafe { Pin::new_unchecked(fut) }; // cx.submit_task(fut); todo!() }; const Task: FC<()> = |cx| { // let _s = cx.use_task(|| async { "hello world".to_string() }); todo!() }; fn use_mut(_cx: Context

, _f: impl FnOnce() -> T) -> &mut T { todo!() }