Skip to content
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

Pass query to getInitialProps #188

Closed
rauchg opened this issue Nov 3, 2016 · 1 comment
Closed

Pass query to getInitialProps #188

rauchg opened this issue Nov 3, 2016 · 1 comment
Assignees

Comments

@rauchg
Copy link
Member

rauchg commented Nov 3, 2016

The new signature would be:

static async getInitialProps({ req, query={} }) {}

Equivalent to the props.url.query we already expose. Would parse req.url on the server and window.location on the client.

@rauchg
Copy link
Member Author

rauchg commented Nov 3, 2016

Closing, found a duplicate :D

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants