@heroui/spinner@2.2.27
- Updated dependencies [
1a2635b]:- @heroui/system-rsc@2.3.22
- @heroui/system@2.4.26
@heroui/user@2.2.25
- Updated dependencies [
5ec842b]:- @heroui/avatar@2.2.25
@heroui/use-image@2.1.14
-
#6041
5ec842bThanks @brianatdetections! - Fix race condition in use-image hook that caused cached images to remain invisible (stuck at opacity-0) on Firefox and Safari.Root Cause: Event handlers (
onload/onerror) were attached AFTER setting the imagesrc. For cached images, the browser firesonloadsynchronously whensrcis set, causing the event to be missed. This is particularly prevalent in Firefox and Safari due to their JavaScript execution timing characteristics.Solution:
- Attach
onload/onerrorhandlers BEFORE settingsrc - Check both
naturalWidthANDnaturalHeight(per CodeRabbit review feedback on #4523) - Handle synchronous error callbacks for failed cached images
- Include
ignoreFallbackin useCallback dependencies to prevent stale closures when prop changes dynamically - Add comprehensive test coverage including synchronous callback scenarios and dynamic
ignoreFallbackchanges
Fixes #4534, #2259
- Attach
@heroui/system@2.4.26
- Updated dependencies [
1a2635b]:- @heroui/system-rsc@2.3.22
@heroui/theme@2.4.26
-
#6157
5549167Thanks @wingkwong! - remove flat dependencies (#6148) -
#6034
1f08506Thanks @atishkr25! - improve pagination with large page counts (#4853, #5860)
@heroui/system-rsc@2.3.22
- #5847
1a2635bThanks @ITBoomBKStudio! - fix(system-rsc): correct type inference in extendVariants and CompoundVariants & correct slot detection in getSlots() to ensure proper slot key extraction and consistent compoundVariants behavior.