-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(img): memoization card and img component
try to fix flickering img, but cannot solve it. cf. gatsbyjs/gatsby#34190
- Loading branch information
1 parent
23bb18f
commit 5396824
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,4 @@ const Desc = styled.p` | |
text-overflow: ellipsis; | ||
` | ||
|
||
export default Card | ||
export default React.memo(Card) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters