wip: before scheduler simplify

This commit is contained in:
Jonathan Kelley committed 2021-09-19 22:10:00 -04:00
1 parent 9971ff215d
commit c16b92ee7e
6 files changed
+77 -53

No files matched your search

+2 -2
View File
@@ -16,12 +16,12 @@ fn shared_state_test() {
struct MySharedState(&'static str);
static App: FC<()> = |cx| {
cx.provide_state(|| MySharedState("world!"));
cx.use_provide_state(|| MySharedState("world!"));
rsx!(cx, Child {})
};
static Child: FC<()> = |cx| {
let shared = cx.consume_state::<MySharedState>()?;
let shared = cx.use_consume_state::<MySharedState>()?;
rsx!(cx, "Hello, {shared.0}")
};