feat: mvoe away from compound context

This commit is contained in:
Jonathan Kelley committed 2021-09-21 13:42:52 -04:00
1 parent bfdcb20437
commit a2c7d17b05
103 files changed
+309 -293

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@ use dioxus_core::prelude::*;
fn main() {}
const App: FC<()> = |cx| {
const App: FC<()> = |cx, props| {
// create a new future
let _fut = cx.use_hook(
|_| {
@@ -20,7 +20,7 @@ const App: FC<()> = |cx| {
todo!()
};
const Task: FC<()> = |cx| {
const Task: FC<()> = |cx, props| {
let (_task, _res) = use_task(cx, || async { true });
// task.pause();
// task.restart();
@@ -34,6 +34,6 @@ const Task: FC<()> = |cx| {
todo!()
};
fn use_mut<P, T>(_cx: Context<P>, _f: impl FnOnce() -> T) -> &mut T {
fn use_mut<P, T>(_cx: Context, _f: impl FnOnce() -> T) -> &mut T {
todo!()
}