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

SSR example does not work #59

Closed
kesne opened this issue Nov 12, 2021 · 2 comments
Closed

SSR example does not work #59

kesne opened this issue Nov 12, 2021 · 2 comments

Comments

@kesne
Copy link

kesne commented Nov 12, 2021

Describe the bug
The SSR example in the API docs does not work as described. It looks like the API for createMemoryHistory is a little different (it expects initialEntries), and there's not clear where loadMatches is coming from in the code example.

Additionally, it seems like the router uses useLayoutEffect, which causes console warnings when trying to SSR.

@tannerlinsley
Copy link
Collaborator

I’m writing the updated SSR example currently.

@tannerlinsley
Copy link
Collaborator

I've dipped SSR into a (coming soon) state, so going to close this for now.

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

No branches or pull requests

2 participants