v1.0.14
Rework useImage
This release rewrites useImage as a standalone hook and changes the initial loading state of useQuery under SSR.
Changes
useImage— reworked from a wrapper overuseQueryinto a standalone hook built onuseEffect/useState. It creates anImage, applies the provided options, listens forload/error, cleans up listeners on unmount, and separately handles already-completed images viaimage.complete/naturalWidth. The API changes accordingly: instead ofdata/refetch/abort/isFetching/isRefetching, the hook now returnsvalue/error/isLoading/isError/isSuccess.
Fixes
useQuery— the initialisLoading/isFetchingstate is no longer tied to the presence ofwindow; it now derives fromenabled, so both start astrueunder SSR.