Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 9f07567

Browse files
committed
Key wrapped component by componentId
1 parent b0e46d8 commit 9f07567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ const imageCacheHoc = <P extends object>(
331331
},
332332
})
333333

334-
return <Wrapped key={this.state.loadedAt} {...(props as P)} />
334+
return <Wrapped key={this.componentId} {...(props as P)} />
335335
} else {
336336
if (this.props.placeholder) {
337337
return this.props.placeholder

0 commit comments

Comments
 (0)