getServerSideProps being called twice and returning object on second call – Reactjs
I have a next.js app. One of the pages is calling getServerSideProps twice. On the second call, it is returning a string of "[object, Object]" on the second call. This is obviously causing an error when the page tries to…