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
config
property - Deprecated
loaderComponent
(moved toconfig.loaderComponent
) (backwards compatible still) - Added ability to configure
deferredQueries
to throw component intoonError
state
- 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
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
This update includes breaking changes.
- New feature: Pass any static data through loader
- New feature: Extend only
transform
withoutuseQueries
(previouslyqueries
) - 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
- 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
- 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