relay-tools / relay-hooks

Use Relay as React hooks
https://relay-tools.github.io/relay-hooks/docs/relay-hooks.html
MIT License
540 stars 56 forks source link

next-ssr with useRouter/withRouter #130

Closed fi0 closed 3 years ago

fi0 commented 3 years ago

In /examples/relay-hook-example/nextjs-ssr/pages/index.tsx How do I pass a queryString (from useRouter/withRouter) to variables.userId ? Thank you!

taion commented 3 years ago

Use prepareVariables on the route.

fi0 commented 3 years ago

I'm using nextjs's dynamic routing with relay-hooks. Is it possible to use prepareVariables and withData from the example?