Open Goutam192002 opened 2 years ago
Thanks for the issue and code snippet. However I cannot reproduce the issue: https://stackblitz.com/edit/nextjs-z41yqg
The setup is similar to yours except it does not have the database middleware and actually call the database methods.
Maybe there is something wrong with your database/database middleware?
I have a next.js page which redirects to a different page. Here's the snippet for the page..
In the status (redirected page) I have a server side function which does a db query and returns the result as props... Here's the snippet for it:
After debugging I was able to figure out, that the redirected page's handler is not getting called on redirect..it works fine on loading it normally via browser request.
Is this a known bug ? Is there a known fix for this?