Skip to content

Commit 3bb14fc

Browse files
authored
Merge branch 'main' into feat-deferred-queries-alt
2 parents 50fcdf7 + 1483f1a commit 3bb14fc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,4 +254,12 @@ const pokemonLoader = baseLoader.extend({
254254
});
255255
```
256256
257-
New properties will overwrite existing.
257+
New properties will overwrite existing.
258+
259+
It's worth mentioning that `queries` and `transform` are linked in this context, meaning that if you supply a new `queries` argument in the extended loader, but no `transform`, then you will **not** inherit the `transform` from the original loader. You either overwrite both or none of these.
260+
261+
* Supplying _just_ a new `queries` argument will result in `transform` being `undefined` in practise.
262+
* Supplying _just_ a new `transform` argument will result in the new transform being ignored.
263+
* Supplying a new `transform` _and_ a new `queries` argument will properly overwrite the existing base properties.
264+
265+
All other properties in the loader will overwrite as expected. You can, for example, just supply a new `onLoading`, or `onError`.

0 commit comments

Comments
 (0)