Skip to content

Commit 06c4b2f

Browse files
authored
fix(image): add missing w to getWrapperProps dependency (#3802)
* fix(image): add missing `w` to `getWrapperProps` dependency * chore(changeset): add changeset
1 parent 606f757 commit 06c4b2f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/shy-mails-live.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nextui-org/image": patch
3+
---
4+
5+
add missing `w` to `getWrapperProps` dependency (#3801)

packages/components/image/src/use-image.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function useImage(originalProps: UseImageProps) {
188188
maxWidth: w,
189189
},
190190
};
191-
}, [slots, showFallback, fallbackSrc, classNames?.wrapper]);
191+
}, [slots, showFallback, fallbackSrc, classNames?.wrapper, w]);
192192

193193
const getBlurredImgProps = useCallback<PropGetter>(() => {
194194
return {

0 commit comments

Comments
 (0)