We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5260736 commit ccb188aCopy full SHA for ccb188a
examples/with-apollo-auth/lib/withData.js
@@ -54,7 +54,13 @@ export default ComposedComponent => {
54
<ComposedComponent url={url} {...composedInitialProps} />
55
</ApolloProvider>
56
)
57
- await getDataFromTree(app)
+ await getDataFromTree(app, {
58
+ router: {
59
+ query: context.query,
60
+ pathname: context.pathname,
61
+ asPath: context.asPath
62
+ }
63
+ })
64
65
// Extract query data from the Apollo's store
66
const state = apollo.getInitialState()
0 commit comments