Skip to content

Commit

Permalink
chore: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
KoichiKiyokawa committed Jan 14, 2022
1 parent df87fbf commit 77548a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/form-ref.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export default function FormRef() {
<Form
method="POST"
ref={ref}
onSuccess={(state: FormStateWithHelpers<{ foo: number }>) => {
console.log(state);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
onSuccess={(_state: FormStateWithHelpers<{ foo: number }>) => {
// reset the form after submission.
ref.current?.reset();
}}
onError={(state) => {
// verify that generics is working properly.
console.log(state.data?.foo);
state.data?.foo;
}}
>
<input name="name" />
Expand Down

0 comments on commit 77548a1

Please sign in to comment.