# Local State Management with Reactive Variables

DevFeed: [Local State Management with Reactive Variables](<https://devfeed.tech/articles/local-state-management-with-reactive-variables-23445.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/local-state-management-with-reactive-variables>)

Author: Khalil Stemmler

Published: 2020-07-17T10:55:47Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [reactive](<https://devfeed.tech/topics/reactive.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [client](<https://devfeed.tech/topics/client.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [cache](<https://devfeed.tech/tags/cache.md>), [reactive](<https://devfeed.tech/tags/reactive.md>), [state-management](<https://devfeed.tech/tags/state-management.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

This tutorial explains how to manage local state in Apollo Client 3 using cache policies and reactive variables. It covers combining local state with remote data, configuring cache reads and writes, and enabling view components to react to state changes.

## Source excerpt

In Apollo Client & Client-side Architecture Basics, we learned that most client-side apps work with a couple of different types of state. When we talk about local state management, we're referring to the pattern of attaching properties and objects that only exist on the client-side. That's state. state is state that we sometimes don't want to lose when the routes change. It's also state we wish to enable reactivity for.