🚀 Features
- shared: Introduce
TimerHandle
for setTimeout type - by @ilyaliao in #4801 (319d8) - useAsyncState: Add executeImmediate with the same type as the promise fn - by @davidglezz in #4716 (82740)
- useEventSource: Added lastEventId for named events - by @whiteyebrw in #4791 (f6f0b)
- useFetch: Support for custom abort reason - by @doyuli in #4820 (44c0b)
- useRefHistory: Add
shouldCommit
- by @JonathanSchndr, Anthony Fu and Robin in #4471 (18acf) - useUrlSearchParams: Add a stringify option for users to provide stringify logic - by @mingXta, Robin and Anthony Fu in #4773 (6a523)
🐞 Bug Fixes
- computedWithControl: Allow deeply watching source - by @MetRonnie and Anthony Fu in #4786 (ffc1a)
- useDevicesList: Check for device availability before requesting permissions - by @ilyaliao in #4818 (c424f)
- useEventListener: Improve types - by @ArthurDarkstone, liliang18 and @Alfred-Skyblue in #4787 (6f565)
- useIdle: Changed the
reset
call when the initial value is true - by @whiteyebrw in #4800 (c6469) - useMouseInElement: Fixing the issue where target element updates were not considered. - by @Codfisher and bgm.cod in #4782 (04af9)
- useScreenSafeArea: Сhanged initial value update - by @whiteyebrw in #4789 (ae573)
- useScriptTag: Support passing nonce - by @1-dilikelei and 董梁玮 in #4753 (57370)
- useScroll: Use mutationObserver to update arrivedState when the DOM is changed - by @andylou0102, AndyLuo, Robin and Anthony Fu in #4433 (135d5)
- watchIgnorable: Add and export types - by @ArthurDarkstone, liliang18 and Robin in #4809 (0e10e)
🏎 Performance
- computedWithControl: Optimize with shallowRef - by @broBinChen and binge_c-admin in #4826 (2c91a)