Releases: ryfylke-react-as/rtk-query-loader
Releases · ryfylke-react-as/rtk-query-loader
@ryfylke-react/rtk-query-loader@1.0.7
@ryfylke-react/rtk-query-loader@1.0.6
- Fixes issue #18
- Code refactoring
@ryfylke-react/rtk-query-loader@1.0.5
- Fixes issue #17 introduced by rtk query between
2.2.3-2.2.5
@ryfylke-react/rtk-query-loader@1.0.4
- 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.
- AwaitLoader is a component that lets you consume loaders and render data on success - without having to create a new component wrapped with
@ryfylke-react/rtk-query-loader@1.0.3
- New
configproperty - Deprecated
loaderComponent(moved toconfig.loaderComponent) (backwards compatible still) - Added ability to configure
deferredQueriesto throw component intoonErrorstate
- Added tests for new features, updated docs
@ryfylke-react/rtk-query-loader@1.0.2
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
useQueriesat 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
This update includes breaking changes.
- New feature: Pass any static data through loader
- New feature: Extend only
transformwithoutuseQueries(previouslyqueries) - Change: How
createLoaderreceives queries. (useQueries) - Change: How
createLoaderreceives 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
transformwhen deferring queries - Updated docs
- Added migration guide to docs
@ryfylke-react/rtk-query-loader@0.3.41
- Added new feature,
deferredQuerieswhich lets you defer certain queries and render the component earlier. - Updated docs
@ryfylke-react/rtk-query-loader@0.3.37
- 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
- Refactored a lot of code to make codebase more readable, added semantic comments.
- Added ability to add custom loader components to loaders