referesh page after submission #4306
Unanswered
amirhbakan
asked this question in
General
Replies: 2 comments 2 replies
-
without code i'm guessing you didn't wrap your submit handler with form#handleSubmit |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks for your reply.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have implemented a form that works properly and when I submit the form, I call an Axios request. after that refreshes the whole page! I have added prevent default and it doesn't prevent that. what's wrong with that? I haven't change sth in redux or states in upper components. and I put a console.log in the first line of the App component function and after form submits, that prints. it shows that page reloads, if I'm not wrong, please tell me how I can prevent page reloading, thanks.
Beta Was this translation helpful? Give feedback.
All reactions