Skip to content

Commit

Permalink
docs: fixed small error
Browse files Browse the repository at this point in the history
  • Loading branch information
0xflotus authored Oct 2, 2023
1 parent 88c0af3 commit 8da1326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/concepts/suspense.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn use_user() -> SuspensionResult<User> {
#### Note on implementing suspending hooks

[`Suspension::new`](https://docs.rs/yew/latest/yew/suspense/struct.Suspension.html#method.new) returns 2 values: the suspension context itself, and a suspension handle.
The latter is the one responsible for signaling when to re-render the suspended components, it provides 2 interchangable ways to do so:
The latter is the one responsible for signaling when to re-render the suspended components, it provides 2 interchangeable ways to do so:

1. Calling its [`resume`](https://docs.rs/yew/latest/yew/suspense/struct.SuspensionHandle.html#method.resume) method.
2. Dropping the handle.
Expand Down

0 comments on commit 8da1326

Please sign in to comment.