All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

fate: A Modern Data Client for React and tRPC with View Composition and Normalized Caching

By

cpojer

5mo ago· 27 min readenCode

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 pulled
fate 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
Snippet from the RSS feed
fate is a modern data client for React. Contribute to nkzw-tech/fate development by creating an account on GitHub.

You might also wanna read