mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
react-async-hook library provides useAsyncCallback that does the same thing as useMutation
This commit is contained in:
@@ -101,5 +101,3 @@ export const errorToStrings = (err: any) => {
|
||||
|
||||
return strings
|
||||
}
|
||||
|
||||
export const errorsToStrings = (errors: any[]) => errors.map(errorToStrings).flat()
|
||||
|
||||
Reference in New Issue
Block a user