You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
20
-
21
-
- Supplying just a new `useQueries` argument will result in transform being undefined in practise.
22
-
- Supplying just a new `transform` argument will result in the new transform being ignored.
23
-
- Supplying a new `transform` and a new `useQueries` argument will properly overwrite the existing base properties.
24
-
25
-
All other properties in the loader will overwrite as expected. You can, for example, just supply a new `onLoading`, or `onError`.
26
-
24
+
:::caution
27
25
`.extend` will not merge two separate `useQueries` properties. For example, you cannot _just_ inherit the deferredQueries, you must either inherit all or none of the `useQueries` argument.
26
+
:::
27
+
:::tip Reusable transformers
28
+
You can extend as many times as you'd like. You can use this feature to easily inject reusable snippets, like transformers.
0 commit comments