Skip to content

Commit

Permalink
docs: fix <Transition/> url in 12_transition.md (#1980)
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 authored Nov 3, 2023
1 parent ba4d226 commit 15ca5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/src/async/12_transition.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `<Transition/>`

You’ll notice in the `<Suspense/>` example that if you keep reloading the data, it keeps flickering back to `"Loading..."`. Sometimes this is fine. For other times, there’s [`<Transition/>`](https://docs.rs/leptos/latest/leptos/fn.Suspense.html).
You’ll notice in the `<Suspense/>` example that if you keep reloading the data, it keeps flickering back to `"Loading..."`. Sometimes this is fine. For other times, there’s [`<Transition/>`](https://docs.rs/leptos/latest/leptos/fn.Transition.html).

`<Transition/>` behaves exactly the same as `<Suspense/>`, but instead of falling back every time, it only shows the fallback the first time. On all subsequent loads, it continues showing the old data until the new data are ready. This can be really handy to prevent the flickering effect, and to allow users to continue interacting with your application.

Expand Down

0 comments on commit 15ca5be

Please sign in to comment.