Skip to content

Commit

Permalink
upgrade to React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Dec 5, 2024
1 parent 0796f8a commit 8bd5824
Show file tree
Hide file tree
Showing 7 changed files with 3,661 additions and 3,346 deletions.
3,876 changes: 2,064 additions & 1,812 deletions epicshop/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions epicshop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"test": "playwright test"
},
"dependencies": {
"@epic-web/config": "^1.11.2",
"@epic-web/config": "^1.16.3",
"@epic-web/workshop-app": "^5.9.0",
"@epic-web/workshop-utils": "^5.9.0",
"execa": "^9.2.0"
"execa": "^9.5.1"
}
}
2 changes: 1 addition & 1 deletion exercises/06.optimization/01.solution.parallel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function SearchResults({

function ShipDetails({ shipName }: { shipName: string }) {
const shipImgSrc = getImageUrlForShip(shipName, { size: 200 })
imgSrc(shipImgSrc)
void imgSrc(shipImgSrc)
// 🦉 play with the delay to see how it affects the loading experience
const ship = use(getShip(shipName, 300))
return (
Expand Down
4 changes: 3 additions & 1 deletion exercises/06.optimization/02.problem.cache/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ function SearchResults({

function ShipDetails({ shipName }: { shipName: string }) {
const shipImgSrc = getImageUrlForShip(shipName, { size: 200 })
imgSrc(shipImgSrc)
// 🦉 using "void" so we don't wait for the promise, but also signal to others
// that we're intentionally not waiting for this promise
void imgSrc(shipImgSrc)
const ship = use(getShip(shipName))
return (
<div className="ship-info">
Expand Down
4 changes: 3 additions & 1 deletion exercises/06.optimization/02.solution.cache/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ function SearchResults({

function ShipDetails({ shipName }: { shipName: string }) {
const shipImgSrc = getImageUrlForShip(shipName, { size: 200 })
imgSrc(shipImgSrc)
// 🦉 using "void" so we don't wait for the promise, but also signal to others
// that we're intentionally not waiting for this promise
void imgSrc(shipImgSrc)
const ship = use(getShip(shipName))
return (
<div className="ship-info">
Expand Down
Loading

0 comments on commit 8bd5824

Please sign in to comment.