Skip to content

@ryfylke-react/rtk-query-loader@0.3.32

Compare
Choose a tag to compare
@imp-dance imp-dance released this 30 Oct 11:09
· 120 commits to main since this release
  • 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 using onFetching.
  • Updated docs
  • Enhanced test coverage