Skip to content

Commit 88ce726

Browse files
committed
forgot to save this file
1 parent 8bd5824 commit 88ce726

File tree

1 file changed

+2
-0
lines changed
  • exercises/06.optimization/01.solution.parallel

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ function SearchResults({
122122

123123
function ShipDetails({ shipName }: { shipName: string }) {
124124
const shipImgSrc = getImageUrlForShip(shipName, { size: 200 })
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
125127
void imgSrc(shipImgSrc)
126128
// 🦉 play with the delay to see how it affects the loading experience
127129
const ship = use(getShip(shipName, 300))

0 commit comments

Comments
 (0)