React Core & Hooks (407 Qs)•Part 5: React Redux State Management (101 - 134)
How Relay is different from Redux?
mid LevelMost AskedState Management
Relay is similar to Redux in that they both use a single store. The main difference is that relay only manages state originated from the server, and all access to the state is used via GraphQL queries (for reading data) and mutations (for changing data). Relay caches the data for you and optimizes network payloads by batching and deduplicating queries.