- Added
withAction
function wrapper foruseVisibleState
- Added
callLimit
option forusePolling
hook which limits the number of calls - Changed some param names for
usePolling
- Added
useSyncState
hook - Improved
useAbortController
: now there's no memory leak because onCleanup won't be registered without proper owner. Also you can pass optional fallback owner - Improved
usePolling
hook: now you can pass an owner to the hook - Changed function names for
useVisibleState
hook
- Added
usePolling
hook - Improved
useAsyncAction
hook: now it's a promise which can return a value! - Fixed types for
useClickOutside
- Fixed types for
useSaveToStorage
(null
andundefined
are supported)
- added
useSortState
- added
useScrollTo
hook useAsyncAction
: action now exposessetErrorMessage
functionuseContextString
: fixed types
- added
useVisibleState
hook
- Reworked
useAsyncAction
hook. Added support forfinally
block.
- added
clearOnEmpty
option foruseSaveToStorage
useSaveToStorage
:isDeferred
option changed tosaveWhenIdle
, also addeddefer
option
- useAbortController
- useAsyncAction
- useContextStrict
- NEW useModulePreloader
- NEW useSaveToStorage
- Added usePinchZoom
- Added useClickOutside