react-async-hook library provides useAsyncCallback that does the same thing as useMutation

This commit is contained in:
Athou
2022-08-13 18:38:11 +02:00
parent 6c6cc8d85b
commit 906acb217a
15 changed files with 122 additions and 152 deletions

View File

@@ -101,5 +101,3 @@ export const errorToStrings = (err: any) => {
return strings
}
export const errorsToStrings = (errors: any[]) => errors.map(errorToStrings).flat()