mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
fix tui benchmark
This commit is contained in:
parent
2444c5333f
commit
2e267eec63
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ fn Grid(cx: Scope<GridProps>) -> Element {
|
||||||
let count = use_state(cx, || 0);
|
let count = use_state(cx, || 0);
|
||||||
let counts = use_ref(cx, || vec![0; size * size]);
|
let counts = use_ref(cx, || vec![0; size * size]);
|
||||||
|
|
||||||
let ctx: &TuiContext = cx.consume_context().unwrap();
|
let ctx: TuiContext = cx.consume_context().unwrap();
|
||||||
if *count.get() + 1 >= (size * size) {
|
if *count.get() + 1 >= (size * size) {
|
||||||
ctx.quit();
|
ctx.quit();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue