When using withPWA alongside getServerSideProps on all of these pages, simple console.log at the beginning of getServerSideProps reveals that the function inside gets executed twice for the page I am navigated at.
This causes issues because if I have API calls in there, they get executed twice.
None of these happen without next-pwa implemented. Tested also on a fresh install of nextjs, latest 13.0.3.
I have a very simple
/pages
structure:When using
withPWA
alongsidegetServerSideProps
on all of these pages, simpleconsole.log
at the beginning ofgetServerSideProps
reveals that the function inside gets executed twice for the page I am navigated at.This causes issues because if I have API calls in there, they get executed twice.
None of these happen without next-pwa implemented. Tested also on a fresh install of nextjs, latest 13.0.3.