Relay Modern
summary
Relay Modern replaces runtime query generation with static queries and persisted queries plus a build step and a relay compiler that generates optimized artifacts and Flow types the runtime becomes modular with built in garbage collection and a smaller relay runtime npm module conversion is incremental component by component and bundles shrink to about one sixth the size at Facebook Marketplace this yields real wins the first screen loads on Android about 900 milliseconds faster and product metrics improve
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:42Why a GraphQL Client?
- 3:01Relay: A GraphQL Client
- 5:11Performance Challenges
- 7:28Rethink Assumptions
- 10:07Push work to build time!
- 10:25Static Queries
- 14:46Relay can't do that!
- 15:07So we rewrote Relay
- 17:00Loads 900ms Faster
- 17:23A Relay Compiler
- 18:49Relay Modern Runtime
- 19:00New Simplified Store with Garbage Collection
- 19:32New Simplified APIs with Imperative Mutations
- 21:40Where did Relay Classic go?
- 23:38react-relay/compat
- 24:49Relay v1.0.0
- 26:14Ideas Implementations
- 26:42A Strong Foundation








