fate: A Modern Data Client for React and tRPC with View Composition and Normalized Caching
By
cpojer
5mo ago· 27 min readenCode
100/100
Golden Brown
Bagelometer↗
Pure flour-power. Hearty enough to carry you through lunch.
Score100Typepress releaseSentimentpositive
Summary
fate is a modern data client for React and tRPC that combines features from Relay and GraphQL. It offers view composition where components declare data requirements through co-located 'views' that get composed into single requests per screen, normalized caching for efficient data updates, data masking, Async React features, and tRPC's type safety. The tool aims to minimize network requests, eliminate waterfalls, and prevent stale or duplicated data through its normalized cache system.
Key quotes
· 4 pulledfate is a modern data client for React and tRPC inspired by Relay and GraphQL
Components declare their data requirements using co-located 'views'. Views are composed into a single request per screen, minimizing network requests and eliminating waterfalls
fate maintains a normalized cache for all fetched data. This enables efficient data updates through actions and mutations and avoids stale or duplicated data
It combines view composition, normalized caching, data masking, Async React features, and tRPC's type safety
fate is a modern data client for React. Contribute to nkzw-tech/fate development by creating an account on GitHub.