-
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
The request does not complete if the contract is invalid and there is a retry with a filter
export const query = createJsonMutation({
name: 'demo',
params: declareParams<string | null>(),
request: {
method: 'POST',
url: $apiUrl,
body: {
source: $context,
fn: (params, context) => ({
context,
action: params ?? {},
}),
},
headers: $headers,
},
response: {
contract: runtypeContract(String),
status: { expected: [200, 204] },
},
});
retry(query, {
times: 3,
delay: linearDelay(500),
filter: isNetworkError,
});
But if you delete the filter or add supressIntermediateErrors: false
the problem will be solved
Metadata
Metadata
Assignees
Labels
No labels