feat: add async suffix eslint rule (#485)
This commit is contained in:
1 parent
5723295856
commit
dcaff1d91c
60 files changed
+296
-225
No files matched your search
@@ -29,7 +29,7 @@ export const InitUserForm = () => {
|
||||
},
|
||||
});
|
||||
|
||||
const handleSubmit = async (values: FormType) => {
|
||||
const handleSubmitAsync = async (values: FormType) => {
|
||||
await mutateAsync(values, {
|
||||
onSuccess: () => {
|
||||
showSuccessNotification({
|
||||
@@ -51,7 +51,7 @@ export const InitUserForm = () => {
|
||||
<Stack gap="xl">
|
||||
<form
|
||||
onSubmit={form.onSubmit(
|
||||
(values) => void handleSubmit(values),
|
||||
(values) => void handleSubmitAsync(values),
|
||||
(err) => console.log(err),
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user