Replies: 2 comments
-
I’m assuming that the data comes from a headless CMS, so shouldn’t you be using |
Beta Was this translation helpful? Give feedback.
-
I am getting the same error, one that is incredibly hard to debug, but thank @LassiterJ for enlightening me to what was happening. In my getServerSideProps function, context.params is overwritten. Simply put, when the page makes a request (ex: I created an issue here: #13566 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a catch all route ([...id] in the pages folder. When getting data in getServerSideProps the context object changes when another request matches the catch all route(from the same page).In my case this is a favicon.ico request. This overwrites the data being passed as props in the associated component and errors out.
Below is a simplified version of the getServerSideProps function I am using.
Is this expected behavior? If so what may be a workaround I can try out?
If not let me know and I will create an issue.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions