Skip to content

Releases: ryfylke-react-as/rtk-query-loader

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

25 Jun 11:31
Compare
Choose a tag to compare
  • Added another param to onLoading, giving you access to the queries in their unfulfilled state
  • Enhanced JSDoc experience a bit
  • Updated type on onError parameter to better match actual type

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

27 May 09:49
Compare
Choose a tag to compare
  • Fixes issue #18
  • Code refactoring

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

24 May 12:39
Compare
Choose a tag to compare
  • Fixes issue #17 introduced by rtk query between 2.2.3-2.2.5

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

01 Jul 14:59
Compare
Choose a tag to compare
  • Improvements to useCreateQuery
    • Refetch support
    • Added timestamps
  • New feature:AwaitLoader
    • AwaitLoader is a component that lets you consume loaders and render data on success - without having to create a new component wrapped with withLoader.

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

16 Mar 18:00
Compare
Choose a tag to compare
  • New config property
  • Deprecated loaderComponent (moved to config.loaderComponent) (backwards compatible still)
  • Added ability to configure deferredQueries to throw component into onError state

  • Added tests for new features, updated docs

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

01 Mar 12:23
Compare
Choose a tag to compare

Fixed a few type-related bugs.

  • Extending with just a transform, not at the end of the extend-chain, no longer causes types to resolve incorrectly.
  • Extending with just a useQueries at the end of the extend-chain no longer causes types to resolve incorrectly.
  • Refactored types in code to make it more readable

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

26 Feb 16:17
Compare
Choose a tag to compare

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

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

18 Jan 18:59
Compare
Choose a tag to compare
  • Added new feature, deferredQueries which lets you defer certain queries and render the component earlier.
  • Updated docs

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

26 Nov 00:07
Compare
Choose a tag to compare
  • Fixed invalid types of the loader-data when...
    • Extending a loader without supplying a new transform method
    • Extending from a loader that did not have any queries
    • Loaders that do not contain any queries
  • Updated docs

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

08 Nov 14:49
Compare
Choose a tag to compare
  • Refactored a lot of code to make codebase more readable, added semantic comments.
  • Added ability to add custom loader components to loaders