React-apollo: Feature Idea: Interacting With Apollo's Underlying Redux Store

Created on 27 Oct 2017  路  2Comments  路  Source: apollographql/react-apollo

To save the application's state I am currently using PouchDB, but I'd like to switch over to Redux. Since Apollo already uses a Redux store under the hood, I was wondering if there is a way to use that store directly from a component?

The documentation Integrating with Redux assumes there is an existing Redux store to integrate with, but in my case there is no store yet and I just want to utilize Apollo's Redux store.

Most helpful comment

@chris-guidry Apollo Client 2.0 does not use Redux anymore. It now allows you to use custom stores. The recommended for Apollo 2.0 is apollo-cache-inmemory, more info here.

All 2 comments

@tsnieman I got an email stating, "Apollo 2.0 does not use Redux under the hood." That comment isn't showing up in this string, but do you know what v2 is using as a store and whether or not it will be directly accessible? I'm currently using v1.2, but open to upgrading to 2.x.

@chris-guidry Apollo Client 2.0 does not use Redux anymore. It now allows you to use custom stores. The recommended for Apollo 2.0 is apollo-cache-inmemory, more info here.

Was this page helpful?
0 / 5 - 0 ratings