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

Improve support for server rendering async routes #2883

Merged
merged 1 commit into from
Jan 13, 2016
Merged

Improve support for server rendering async routes #2883

merged 1 commit into from
Jan 13, 2016

Conversation

taion
Copy link
Contributor

@taion taion commented Jan 11, 2016

Closes #2714

import Link from '../Link'
import match from '../match'
import RoutingContext from '../RoutingContext'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't actually testing the v1 API. Now it is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@timdorr
Copy link
Member

timdorr commented Jan 11, 2016

LGTM.

@taion
Copy link
Contributor Author

taion commented Jan 12, 2016

@ryanflorence

We initially discussed not doing this in #2036 (comment) and subsequently, but I think this is lightweight enough, and it solves the "async onEnter hook" use case, and makes things mostly just work with JSPM.

What do you think?

taion added a commit that referenced this pull request Jan 13, 2016
Improve support for server rendering async routes
@taion taion merged commit 7fc7c67 into remix-run:master Jan 13, 2016
@taion taion deleted the client-match-async branch January 13, 2016 00:28
@ngoossens
Copy link

👍

}
// Use initial state from renderProps when available, to allow using match
// on client side when doing server-side rendering.
const { location, routes, params, components } = this.props

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! I just got async routes working with RC4, had some issues, but you fixed it for me :)

👍 @taion

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

Successfully merging this pull request may close these issues.

4 participants