Duck Duck Redux: Using Apollo Client for App State Management
Tuesday, July 27, 2021 - 6:00 PM UTC, for 1 hour.
AT THAT (In-Person Only) Regular, 60 minute presentation
Room: African 70 & African 80
Redux has become the de facto standard for state management in many front-end apps. Its benefits include an easy-to-understand state transition system and it provides a simple way to share data across your app. One of the biggest drawbacks of Redux is the amount of boilerplate code that needs to be written in order to support it. While some libraries help reduce these repetitious tasks, they can still be a headache to maintain. Apollo Client has quickly risen in popularity due to its ease of use with GraphQL-based APIs. Among its many features is a query result caching system, helping to reduce bandwidth and providing an easy way to stash app-related data. This talk will explore ways to leverage Apollo Client's caching mechanism to act as your app's state management system. We'll see how Apollo can be used to share data across your app with just a few lines of code and reduce the amount of calls you need to make to your API.
Some familiarity with React, Redux, GraphQL and general front-end architecture.
- How to use Apollo Client's caching system
- A new way of thinking about app state management
- A new way to scale your app