Closed bwesner closed 5 years ago
In your next-apollo-example, you mention waiting on a bug fix to be able to use useRouter properly: https://github.com/adamsoffer/next-apollo-example/blob/52317222c6a326568056ffa1ed63793fa423d10d/components/Header/index.js#L7
next-apollo-example
useRouter
They have fixed it in https://github.com/zeit/next.js/pull/7732
We need to update next-apollo to use AppTree so that this can be properly supported. Afterwords, next-apollo-example should be updated.
next-apollo
AppTree
Check out how they updated their example here: https://github.com/zeit/next.js/commit/dc9e2708984bc6bc7e87724fb5193e7f788c89a3
Great thanks for the heads up @bwesner.
@bwesner Sorry been quite busy and haven't gotten to this yet. Feel free to submit a PR!
@bwesner heads up this has been fixed in v3.1.4
v3.1.4
In your
next-apollo-example
, you mention waiting on a bug fix to be able to useuseRouter
properly: https://github.com/adamsoffer/next-apollo-example/blob/52317222c6a326568056ffa1ed63793fa423d10d/components/Header/index.js#L7They have fixed it in https://github.com/zeit/next.js/pull/7732
We need to update
next-apollo
to useAppTree
so that this can be properly supported. Afterwords,next-apollo-example
should be updated.Check out how they updated their example here: https://github.com/zeit/next.js/commit/dc9e2708984bc6bc7e87724fb5193e7f788c89a3