Skip to content

Commit 2e9b621

Browse files
committed
21 - DEMO6: ImageWorker makes it nice
1 parent 63137de commit 2e9b621

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/components/pokemon-grid-item.gts

+5-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ export default class PokemonGridItem extends Component<PokemonSignature> {
4848

4949
@cached
5050
get thumbnailUrl() {
51-
return this.args.pokemon.image.thumbnail;
52-
// const state = getPromiseState(this.thumbnailRequest);
53-
// if (state.isError || state.isPending) {
54-
// return null;
55-
// }
56-
// return state.result;
51+
const state = getPromiseState(this.thumbnailRequest);
52+
if (state.isError || state.isPending) {
53+
return null;
54+
}
55+
return state.result;
5756
}
5857

5958
<template>

0 commit comments

Comments
 (0)