Skip to content

Commit

Permalink
Update typo in resources-and-suspense.md (#780)
Browse files Browse the repository at this point in the history
Replace `create_resource` with new `create_client_resource` name.
  • Loading branch information
humb1t authored Jan 15, 2025
1 parent 7954f7e commit 994811e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/next/guide/resources-and-suspense.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ depends on. This can be accomplished with the `on(...)` utility function.

```rust
let id = create_signal(12345);
let resource = create_resource(on(id, move || async move {
let resource = create_client_resource(on(id, move || async move {
fetch_user(id.get()).await
}));
```
Expand Down

0 comments on commit 994811e

Please sign in to comment.