-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a nice way to get the router API inside a component #2032
Comments
@arunoda Not sure if you want my help, but I would be interested in trying to implement this. Want me to give it a go or do you prefer to do it yourself? |
I've to delay this for a week. Yeah! Go ahead. I'll fine tune it. |
@sergeybekrin Thanks, these files are helpful. @arunoda I've gotten this working already, just a few questions...
|
|
@arunoda There's the PR. I left the error page so that people know that using 'next/router' directly will break SSR, but I changed the Header to use a CustomLink that is wrapped by withRouter. I took your idea of showing the active state of a link, thanks for that :) I noticed when implementing this that |
@nwshane shall we discuss this on the PR. Could you tell me about the issue there? |
Guys, sorry for not taking this yet. |
Will this feature be included in 3.0? |
Waiting |
Any updates on this? been dying for a way to add an "active" class to my links |
@i8ramin it's going to be merged after v3 lands. |
@timneutkens should it be merged already? |
This is available in 3.2.0 now. |
@fritz-c thanks, closed 👌 |
We need an HOC API like this:
The text was updated successfully, but these errors were encountered: