We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab7d86 commit f661420Copy full SHA for f661420
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@ryfylke-react/rtk-query-loader",
3
- "version": "0.3.2",
+ "version": "0.3.21",
4
"description": "Lets you create loaders that contain multiple RTK queries.",
5
"main": "./dist/cjs/index.js",
6
"module": "./dist/esm/index.js",
src/types.ts
@@ -89,7 +89,10 @@ export type CreateLoaderArgs<
89
> = Partial<CreateUseLoaderArgs<QRU, R, A>> & {
90
queriesArg?: (props: P) => A;
91
onLoading?: (props: P) => ReactElement;
92
- onError?: (props: P, error?: unknown) => ReactElement;
+ onError?: (
93
+ props: P,
94
+ error: FetchBaseQueryError | SerializedError
95
+ ) => ReactElement;
96
onFetching?: (
97
props: P,
98
renderBody: () => ReactElement
0 commit comments