Skip to content

Commit

Permalink
When src changes, completely reload the component
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanoverna committed Sep 23, 2024
1 parent ae15591 commit 7cbedfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ export const Image = forwardRef<HTMLDivElement, ImagePropTypes>(

return (
<div
key={data.src}
ref={rootRef}
className={className}
style={{
Expand Down

0 comments on commit 7cbedfb

Please sign in to comment.