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
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 30, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Feature request
Is your feature request related to a problem? Please describe.
I use properties on my components to control the layout in
_app.jsx
. For example:But when I need to access the router, I've been using the HOC, with doesn't hoist
navbar
off the component.Describe the solution you'd like
I'd like
withRouter
to hoist non-react component properties. Currently, it only picks out:getInitialProps
displayName
/name
It would be a pretty much one-line solution to use
hoist-non-react-statics
.Describe alternatives you've considered
I have considered putting them in
getInitialProps
but I don't this seems like the right place to put them.Additional context
Add any other context or screenshots about the feature request here.The text was updated successfully, but these errors were encountered: