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

Enhancements #71

Closed
chaffeqa opened this issue Jul 9, 2017 · 1 comment
Closed

Enhancements #71

chaffeqa opened this issue Jul 9, 2017 · 1 comment

Comments

@chaffeqa
Copy link

chaffeqa commented Jul 9, 2017

We ended up having to do a quick cut over from our react-router + redux massive SPA to next.js. We used this lib to help convert the react-router style routes to next.js.

However we ended up "forking" (shoving into our repo) this lib to allow for:

  • preload support
  • dev preload
  • redirect support

You can see our implementation here

Our next-routes implementation is here in the repo

Please feel free to reach out on this issue with questions, I hope to have more time to write a blog post on this / make some pull requests here, but I dont know if I will have the time for that as of yet

Thanks for such a great OS project!

@fridays
Copy link
Owner

fridays commented Jul 11, 2017

Thanks for sharing!

We support <Link prefetch> and there is Router.prefetchRoute() but in development mode Next.js now uses on demand entries for performance improvements.

The latest version supports <Link to='/any/path'> like in react-router

A redirect feature would be great, I think many people would like this. Any PR welcome!

@fridays fridays closed this as completed Aug 21, 2017
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