4 ms·
Remix's approach to fetching is unique and compelling for Rest APIs. However, if you're working with a GraphQL API, you can eliminate all these much-mentioned
by cockatiel_day 5y ago
Remix's approach to fetching is unique and compelling for Rest APIs.
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.