Merge branch 'master' into jk/simple-suspense

This commit is contained in:
Jonathan Kelley committed 2023-07-14 17:13:55 -07:00
commit 4ab554dfe4
1 file changed
+2 -2
+2 -2
View File
@@ -54,7 +54,7 @@ pub fn App(cx: Scope) -> Element {
fn DataEditor(cx: Scope, id: usize) -> Element {
let cool_data = use_shared_state::<CoolData>(cx).unwrap().read();
let my_data = &cool_data.view(&id).unwrap();
let my_data = &cool_data.view(id).unwrap();
render!(p {
"{my_data}"
@@ -68,7 +68,7 @@ fn DataView(cx: Scope, id: usize) -> Element {
let oninput = |e: FormEvent| cool_data.write().set(*id, e.value.clone());
let cool_data = cool_data.read();
let my_data = &cool_data.view(&id).unwrap();
let my_data = &cool_data.view(id).unwrap();
render!(input {
oninput: oninput,