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
Copy file name to clipboardExpand all lines: docs/rtk-query/api/createApi.mdx
+27-1
Original file line number
Diff line number
Diff line change
@@ -493,6 +493,16 @@ If you specify `track: false` when manually dispatching queries, RTK Query will
493
493
You can set this globally in `createApi`, but you can also override the default value and have more granular control by passing `onSchemaFailure` to each individual endpoint definition.
You can set this globally in `createApi`, but you can also override the default value and have more granular control by passing `catchSchemaFailure` to each individual endpoint definition.
Inorderforschemafailurestobetreatedasnon-fatal, youmustprovidea [`catchSchemaFailure`](#catchschemafailure) function, to convert the schema failure into an error shape matching the base query errors.
0 commit comments