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
Router is a singleton, so you can import from next/router it and get his properties(which is pretty much what react router does, it exposes history package as a singleton)
React router which I'm used to, passes route information via props to contained components.
I was hoping to access route payload information via props in Next but it turns out props is an empty object by default.
Is there a way to get information about the current page route like location, param, etc?
The text was updated successfully, but these errors were encountered: