You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sending context & router to the API constructor to access the locale value
when I try console.log({ context, router }), it gives me the following values
{ context: contextObject, router: undefined } --> getServerSideProps API calls
{ context: undefined, router:routerObject } --> client-side API calls
{ context: undefined, router: undefined } --> I can't tell what causes this case, anyone has any clue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I'm sending
context
&router
to the API constructor to access thelocale
valuewhen I try
console.log({ context, router })
, it gives me the following valuesgetServerSideProps
API callsAdditional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions