Next-routes: Enhancements

Created on 10 Jul 2017  路  1Comment  路  Source: fridays/next-routes

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!

Most helpful comment

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!

>All comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidnguyen179 picture davidnguyen179  路  6Comments

haotangio picture haotangio  路  5Comments

dbenfouzari picture dbenfouzari  路  6Comments

jesstelford picture jesstelford  路  3Comments

bliitzkrieg picture bliitzkrieg  路  4Comments