Skip to content

Commit 8bd5824

Browse files
committed
upgrade to React 19
1 parent 0796f8a commit 8bd5824

File tree

7 files changed

+3661
-3346
lines changed

7 files changed

+3661
-3346
lines changed

epicshop/package-lock.json

Lines changed: 2064 additions & 1812 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

epicshop/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"test": "playwright test"
66
},
77
"dependencies": {
8-
"@epic-web/config": "^1.11.2",
8+
"@epic-web/config": "^1.16.3",
99
"@epic-web/workshop-app": "^5.9.0",
1010
"@epic-web/workshop-utils": "^5.9.0",
11-
"execa": "^9.2.0"
11+
"execa": "^9.5.1"
1212
}
1313
}

exercises/06.optimization/01.solution.parallel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function SearchResults({
122122

123123
function ShipDetails({ shipName }: { shipName: string }) {
124124
const shipImgSrc = getImageUrlForShip(shipName, { size: 200 })
125-
imgSrc(shipImgSrc)
125+
void imgSrc(shipImgSrc)
126126
// 🦉 play with the delay to see how it affects the loading experience
127127
const ship = use(getShip(shipName, 300))
128128
return (

exercises/06.optimization/02.problem.cache/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ function SearchResults({
122122

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

exercises/06.optimization/02.solution.cache/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ function SearchResults({
122122

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

0 commit comments

Comments
 (0)