Skip to content

Commit

Permalink
Update deferred.md (remix-run#10306)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dad authored Apr 5, 2023
1 parent d073aad commit b06af69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
- lpaube
- lqze
- lukerSpringTree
- m-dad
- m-shojaei
- machour
- Manc
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/deferred.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ But it's still sub optimal in most cases (especially if you're code-splitting ro
React Router takes advantage of React 18's Suspense for data fetching using the [`defer` Response][defer response] utility and [`<Await />`][await] component / [`useAsyncValue`][useasyncvalue] hook. By using these APIs, you can solve both of these problems:

1. Your data is no longer on a waterfall: document -> JavaScript -> Lazy Loaded Route & data (in parallel)
2. Your can easily switch between rendering the fallback and waiting for the data
2. Your code can easily switch between rendering the fallback and waiting for the data

Let's take a dive into how to accomplish this.

Expand Down

0 comments on commit b06af69

Please sign in to comment.