Skip to content

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

Compare
Choose a tag to compare
@imp-dance imp-dance released this 26 Feb 16:17
· 44 commits to main since this release

This update includes breaking changes.

  • New feature: Pass any static data through loader
  • New feature: Extend only transform without useQueries (previously queries)
  • Change: How createLoader receives queries. (useQueries)
  • Change: How createLoader receives deferredQueries. (useQueries)
  • Change: Default loader output format
type NewOutputFormat = {
  queries: Record<string, UseQueryResult>;
  deferredQueries: Record<string, UseQueryResult>;
  payload: T;
}
  • Change: You are no longer required to transform when deferring queries
  • Updated docs
  • Added migration guide to docs