Actual result
If during onSuccess callback there will be an error, oneschema is not catching it, so the onRequestClose is called and we cannot retry
onSuccess={async (data) => {
try {
await handleData(data);
} catch (err) {
console.error(err);
throw err;
}
}}
Expected result
If during onSuccess - there will be an error, it should be passed to onError and user can retry
Actual result
If during onSuccess callback there will be an error, oneschema is not catching it, so the onRequestClose is called and we cannot retry
Expected result
If during onSuccess - there will be an error, it should be passed to onError and user can retry