85 points · by pspeter3 · 4y ago · 16 comments
However, if you're working with a GraphQL API, you can eliminate all these much-mentioned fetch waterfall issues by using Relay as a client... Relay inspects the data needs of all your page's components and compiles them to a single page query. Relay also has a number of nice developer interfaces for common/annoying problems like pagination that I don't think are possible w/ Remix's approach.
This article is informative, but I think it misleadingly implies that you can't avoid waterfall fetches in Next (or that it only might be possible someday w/ React Server Components)... you can.
Very big fan of fly.io as well, they’re smart folks and I run every service I can on them.
The only exception might be the router. I’ve found it a little limited at times and there’s no way around it. This is one of remix’s apparent strengths, but it’s insanely comprehensive. I wonder if it might be too much in the other direction.
Frontends are incredibly bloated already and next.js embedding react in any page is a killer for static websites.
https://nextjs.org/blog/next-12#react-server-components
Note that this is an effort largely driven by the React team, and Vercel is integrating support for the feature into Next. You're able to do this without Next:
https://reactjs.org/blog/2020/12/21/data-fetching-with-react...
It's early still, but I imagine this will be an established and well-supported feature by the end of the year.