'Next.js AMP page Form not submitting data. It just refreshes
I am currently working on an amp page and whenever I try to submit my form instead of hitting the API mentioned in action-xhr it simply reloads the page. I have a getServerSideProps in there but when I change it to getStaticProps it resumes to work as expected. However, I need the serverSideProps as that is the only way I can get the query params of the page. With static props, I do not have access to the query params.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
