Skip to content

Commit

Permalink
Fixed Typo of library (apollographql#10668)
Browse files Browse the repository at this point in the history
* Fix the Typo "Apollo-3-cache-persist" to "Apollo3-cache-persist".

Co-authored-by: Alessia Bellisario <[email protected]>
  • Loading branch information
AlaguSelvan and alessbell authored Mar 29, 2023
1 parent 6765e4b commit 3e93238
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Note that even if you _do_ store local data as fields in the Apollo Client cache

By default, neither a reactive variable nor the `InMemoryCache` persists its state across sessions (for example, if a user refreshes their browser). To persist this state, you need to add logic to do so.

The `apollo-3-cache-persist` library helps you persist and rehydrate the Apollo Client cache between sessions. For details, see [Persisting the cache](../caching/advanced-topics/#persisting-the-cache).
The `apollo3-cache-persist` library helps you persist and rehydrate the Apollo Client cache between sessions. For details, see [Persisting the cache](../caching/advanced-topics/#persisting-the-cache).

There is currently no built-in API for persisting reactive variables, but you can write variable values to `localStorage` (or another store) whenever they're modified, and initialize those variables with their stored value (if any) on app load.

Expand Down

0 comments on commit 3e93238

Please sign in to comment.