Alec Wojciechowski

Camp Counselor

Duck Duck Redux: Using Apollo Client for App State Management

Event Logo

Tuesday, July 27, 2021 - 6:00 PM UTC, for 1 hour.

Regular, 60 minute presentation

Room: African 70 & African 80

React
Redux
GraphQL
Apollo
State Management

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.

Prerequisites

Some familiarity with React, Redux, GraphQL and general front-end architecture.

Take Aways

  • How to use Apollo Client's caching system
  • A new way of thinking about app state management
  • A new way to scale your app
favorited by:
Matt Willmer Steven Hicks Ryan Wisniewski Dennis Moon Michael Acord Joshua Doro Kyle Kurtz Justin Weyenberg Axel Larsen Kevin Kelchen