You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toast.promise(create({ variables: { input: data }}), {
115
+
loading:'Creating post...',
116
+
success:'Post created',
117
+
error:'Error creating post',
118
+
})
119
+
}
120
+
121
+
return (
122
+
// <Form onSubmit={onSubmit}> ... </Form>
123
+
)
124
+
})
125
+
126
+
exportdefaultPostForm
127
+
```
128
+
129
+
:::warning
130
+
131
+
You can't use the [onError](https://www.apollographql.com/docs/react/api/react/hooks/#onerror) callback in combination with the `toast.promise` function.
0 commit comments