Fix flakey windows tests (#2332)
This commit is contained in:
1 parent
c9ab09b348
commit
5ce91e1bfc
31 files changed
+217
-136
No files matched your search
@@ -66,6 +66,9 @@ tokio = { workspace = true, features = ["rt", "sync"], optional = true }
|
||||
dioxus-hot-reload = { workspace = true }
|
||||
tokio = { workspace = true, features = ["rt", "sync", "rt-multi-thread"], optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
dioxus = { workspace = true, features = ["fullstack"] }
|
||||
|
||||
[features]
|
||||
default = ["hot-reload"]
|
||||
hot-reload = ["serde_json"]
|
||||
|
||||
@@ -32,7 +32,7 @@ Fullstack utilities for the [`Dioxus`](https://dioxuslabs.com) framework.
|
||||
|
||||
Full stack Dioxus in under 30 lines of code
|
||||
|
||||
```rust
|
||||
```rust, no_run
|
||||
#![allow(non_snake_case)]
|
||||
use dioxus::prelude::*;
|
||||
|
||||
@@ -42,7 +42,7 @@ fn main() {
|
||||
|
||||
#[component]
|
||||
fn App() -> Element {
|
||||
let meaning = use_signal(|| None);
|
||||
let mut meaning = use_signal(|| None);
|
||||
|
||||
rsx! {
|
||||
h1 { "Meaning of life: {meaning:?}" }
|
||||
|
||||
@@ -12,9 +12,9 @@ use serde::{de::DeserializeOwned, Serialize};
|
||||
/// use dioxus_fullstack::prelude::*;
|
||||
///
|
||||
/// fn app() -> Element {
|
||||
/// let state1 = server_cached(|| from_server(|| {
|
||||
/// let state1 = server_cached(|| {
|
||||
/// 1234
|
||||
/// }));
|
||||
/// });
|
||||
///
|
||||
/// None
|
||||
/// }
|
||||
|
||||
Reference in new issue
Block a user