Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
markcda committed Nov 4, 2024
1 parent 2d049e9 commit d6ab8fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Simplifies future hooks that should be reusable.

## Usage

```rust
```rust,ignore
use dioxus_v04_optional_hooks::{FutureHook, StartupGuard};
use dioxus::prelude::*;
Expand All @@ -18,7 +18,7 @@ let get_project_card_fut = FutureHook::new(cx, StartupGuard::Enable, (project_se
...
cx.render({
get_project_card_fut.fetch();
get_project_card_fut.lazy_fetch();
if let Some(project_card) = get_project_card_fut.read_clone(false) {
...
}
Expand Down

0 comments on commit d6ab8fe

Please sign in to comment.