Skip to content

Commit 07fa7b9

Browse files
committed
docs: some more doc updates
1 parent b3e3d27 commit 07fa7b9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/docs/Migrations/v0.x.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ const Consumer = withLoader((props, data) => {
106106

107107
Previously, if you wanted to do something like this, you had to use [useCreateQuery](../Exports/use-create-query.md), or a wrapper component. If you did, you can now refactor your code to use `payload` instead, which should be a lot more clean and flexible.
108108

109+
## Change: Extend transform
110+
111+
Previously, `transform` and `queries` were linked when extending. Meaning you had to either extend both, just `queries` or neither of these. You could not supply _just_ a `transform`. This is no longer the case, and you are free to extend with _just_ transform as well.
112+
109113
## Reporting bugs
110114

111115
If you find any bugs or issues with this new update, I strongly encourage you to [file a bug report](https://github.com/ryfylke-react-as/rtk-query-loader/issues/new?assignees=&labels=&template=bug_report.md&title=) on the Github repo.

docs/docs/examples.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebar_position: 3
44

55
# Simple example
66

7+
_TL;DR_
8+
79
```tsx {10-23,26-35}
810
import {
911
withLoader,
@@ -41,3 +43,5 @@ const UserRoute = withLoader((props, loader) => {
4143
);
4244
}, userRouteLoader);
4345
```
46+
47+
Follow our quick guide for some recommendations and best practises.

docs/docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ If you are using version `0.3.51` or earlier, please refer to the [**migration g
2121
:::
2222

2323
:::tip Getting Started
24-
Get started with our recommended best practises by following the [**Quick guide**](/Quick%20guide).
24+
Get started with our recommended best practises by following the [**Quick guide**](/Quick%20guide), or looking at a [simple example](./examples.md).
2525
:::

0 commit comments

Comments
 (0)