-
Hi the community. I have a separate service layer for my fetch calls on my project. Assume getSomeData function there. So, if I import and call that function inside getServerSideProps, it returns null. But if I call fetch directly inside getServerSideProps it works OK. Why that? My getSomeData function calls same fetch, but just wrapped in a couple other functions like getSomeData -> callMySuperApi("/call") -> fetchBackend("/call") -> fetch("http://mybackend/call"). Appreciate your help. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Turned out to be some modules' version issue. So stupid. Thank you for help anyway! |
Beta Was this translation helpful? Give feedback.
Turned out to be some modules' version issue. So stupid. Thank you for help anyway!