DEV Community

Discussion on: How is Remix different from Next.js

Collapse
 
ryanflorence profile image
Ryan Florence

Great question about data and nested routes. We've done some smart optimizations around that (well, I think they're smart anyway!).

If the layout persists between route transitions, then the resources for those layouts are not refetched, only the changed routes resources are fetched.

Also, the data, code split route module, and styles are fetched in parallel. We don't need the module to know the data, because our server already knows the hierarchy.