Skip to content

Commit

Permalink
Remove jsonplaceholder (too slow) and simulate an API call
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed May 27, 2020
1 parent 4ba9bb8 commit d5a27ec
Show file tree
Hide file tree
Showing 5 changed files with 2,329 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/components/rehydration/DisplayOnBrowserMount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Props = {
* This process is named "Two pass rendering":
* The first pass, at compile-time, produces all of the static non-personal content, and leaves holes where the dynamic content will go.
* Then, after the React app has mounted on the user's device, a second pass stamps in all the dynamic bits that depend on client state.
* The downside to two-pass rendering is that it can delay time-to-interactive.
* The downside to two-pass rendering is that it can waitFor time-to-interactive.
*
* @param props
* @see https://joshwcomeau.com/react/the-perils-of-rehydration/#abstractions Strongly inspired by "ClientOnly" abstraction
Expand Down

0 comments on commit d5a27ec

Please sign in to comment.