Skip to content

Conversation

dan-lee
Copy link
Contributor

@dan-lee dan-lee commented Nov 9, 2019

I added location.search to SSR query param parsing, as they didn't seem to be picked up anymore.

It's appended defensively to location.pathname, because I don't know the circumstances when the path is not including the query string in location.search (for me it does with express)

I needed to create a new file for the test (useQueryParam-SSR-test.tsx) to simulate a node environment with the docblock pragma

Should fix #51

Thanks 🙏

@pbeshai
Copy link
Owner

pbeshai commented Nov 10, 2019

Thanks! 🤞

@pbeshai pbeshai merged commit 7ee61b5 into pbeshai:master Nov 10, 2019
@pbeshai
Copy link
Owner

pbeshai commented Nov 10, 2019

In v0.4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Values not loading on a server side render using <StaticRouter>
2 participants