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

fix(client): make sure the route match is added to the context #42

Merged
merged 1 commit into from
May 30, 2020

Conversation

crash7
Copy link
Contributor

@crash7 crash7 commented May 30, 2020

On client-side render, the props contain the match for the original route, this PR makes sure that we pass the match for the current route to the fetchInitialProps context.

@crash7 crash7 requested a review from lfantone as a code owner May 30, 2020 00:20
@crash7 crash7 requested review from a team, ivelazco, gaston-flores and peibol85 and removed request for a team May 30, 2020 00:20
@github-actions
Copy link

Code coverage

Filename Statements Branches Functions Lines
packages/server/src/utils.js 100% 100% 100% 100%
packages/server/src/fetchInitialPropsFromRoute.js 100% 92.86% 100% 100%
packages/server/src/Error.component.jsx 100% 100% 100% 100%
packages/server/src/Document.component.jsx 93.75% 75% 83.33% 100%
packages/server/src/Before.component.jsx 42.86% 0% 43.75% 42.86%
packages/server/src/render.js 91.11% 85.71% 100% 90.7%

@crash7 crash7 merged commit 7e713c8 into master May 30, 2020
@crash7 crash7 deleted the fix/route-matching branch May 30, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants