-
Notifications
You must be signed in to change notification settings - Fork 79
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
Update 5.3.0
broke router usage in _app.js
#181
Comments
i see, we destrucutre router out of |
macrozone
added a commit
to macrozone/next-with-apollo
that referenced
this issue
Mar 5, 2022
I have fixed it by just using: import { useRouter } from 'next/router'
function MyApp({ Component, apollo, pageProps }) {
const { route } = useRouter();
if (route === '/login') { }
(...) Seems to work the same for now, but that's still a breaking change for some probably. |
yes, pushed a pr to fix it! sorry for that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update
5.3.0
broke router usage.I was using router like this in _app.js:
Now
router
is undefinedThe text was updated successfully, but these errors were encountered: