@ryfylke-react/rtk-query-loader@0.3.32
- onError is now passed a third argument,
query
, which contains the joined query for the loader - Fixed/moved dependencies to reduce bundle-size
- Did some refactoring to
withLoader
so that we now don't call the passed component as a function, but instead by using React.createElement/JSX (and a forwardRef to pass the loader data) - New argument:
whileFetching
, ensures that the component is not unmounted while fetching - which might happen when usingonFetching
. - Updated docs
- Enhanced test coverage