rportugal / Apollo Cache Redux
Redux cache for Apollo Client 2.0. This project is no longer maintained.
Stars: ✭ 179
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Apollo Cache Redux
Reactql
Universal React+GraphQL starter kit: React 16, Apollo 2, MobX, Emotion, Webpack 4, GraphQL Code Generator, React Router 4, PostCSS, SSR
Stars: ✭ 1,833 (+924.02%)
Mutual labels: graphql, apollo, apollo-client
Next Graphql Blog
🖊 A Blog including a server and a client. Server is built with Node, Express & a customized GraphQL-yoga server. Client is built with React, Next js & Apollo client.
Stars: ✭ 152 (-15.08%)
Mutual labels: graphql, apollo, apollo-client
Blaze Apollo
Blaze integration for the Apollo Client
Stars: ✭ 56 (-68.72%)
Mutual labels: graphql, apollo, apollo-client
Apollo Invalidation Policies
An extension of the Apollo 3 cache with support for type-based invalidation policies.
Stars: ✭ 55 (-69.27%)
Mutual labels: graphql, apollo, apollo-client
Apollo Link
🔗 Interface for fetching and modifying control flow of GraphQL requests
Stars: ✭ 1,434 (+701.12%)
Mutual labels: graphql, apollo, apollo-client
A Pop
🎶 HD Music Streaming and Sharing Web App
Stars: ✭ 55 (-69.27%)
Mutual labels: graphql, apollo, apollo-client
Cynthesize Frontend
Frontend written in Angular 7 and deployed GraphQL for Cynthesize. Development build: https://cynthesize-develop.netlify.com
Stars: ✭ 65 (-63.69%)
Mutual labels: graphql, apollo, apollo-client
Chatty
A WhatsApp clone with React Native and Apollo (Tutorial)
Stars: ✭ 481 (+168.72%)
Mutual labels: graphql, apollo, apollo-client
Apollo Upload Client
A terminating Apollo Link for Apollo Client that allows FileList, File, Blob or ReactNativeFile instances within query or mutation variables and sends GraphQL multipart requests.
Stars: ✭ 1,176 (+556.98%)
Mutual labels: graphql, apollo, apollo-client
Crypto Grommet
Crypto and equities app
Stars: ✭ 39 (-78.21%)
Mutual labels: graphql, apollo, apollo-client
Awesome Apollo Graphql
A curated list of amazingly awesome things regarding Apollo GraphQL ecosystem 🌟
Stars: ✭ 126 (-29.61%)
Mutual labels: graphql, apollo, apollo-client
React Boilerplate
⚛ The stable base upon which we build our React projects at Mirego.
Stars: ✭ 39 (-78.21%)
Mutual labels: graphql, apollo, apollo-client
Graphql Directive
Use custom directives in your GraphQL schema and queries 🎩
Stars: ✭ 142 (-20.67%)
Mutual labels: graphql, apollo, apollo-client
Link state demo
🚀 Demonstrate how to support multiple stores in Apollo Link State
Stars: ✭ 30 (-83.24%)
Mutual labels: graphql, apollo, apollo-client
Guide To Graphql
A Frontend Developer's Guide to GraphQL (Fluent Conf 2018)
Stars: ✭ 59 (-67.04%)
Mutual labels: graphql, apollo, apollo-client
Apollo Cache Hermes
A cache implementation for Apollo Client, tuned for performance
Stars: ✭ 425 (+137.43%)
Mutual labels: graphql, apollo, apollo-client
Searchkit
GraphQL API & React UI components for Elasticsearch. The easiest way to build a great search experience
Stars: ✭ 4,338 (+2323.46%)
Mutual labels: graphql, apollo, apollo-client
Artemis Dev Tool
An Apollo GraphQL Query Schema Testing Tool
Stars: ✭ 66 (-63.13%)
Mutual labels: graphql, apollo, apollo-client
React Graphql Github Apollo
🚀 A React + Apollo + GraphQL GitHub Client. Your opportunity to learn about these technologies in a real world application.
Stars: ✭ 1,563 (+773.18%)
Mutual labels: graphql, apollo, apollo-client
DEPRECATED - no longer actively maintained
apollo-cache-redux
is a cache implementation backed by Redux for Apollo Client 2.0.
It heavily reuses cache normalization code from apollo-cache-inmemory
.
Works with Redux 3.x and 4.x .
Installation
npm install apollo-cache-redux --save
After installing the package:
import { ReduxCache, apolloReducer } from 'apollo-cache-redux';
import { createStore, combineReducers } from 'redux';
import { HttpLink } from 'apollo-link-http';
import ApolloClient from 'apollo-client';
const store = createStore(
combineReducers({
apollo: apolloReducer
...otherReducers
})
);
const cache = new ReduxCache({ store });
const client = new ApolloClient({
link: new HttpLink(),
cache
});
The following options are accepted for ReduxCache
:
-
store
. An existing Redux store. If you don't have one, please create it as per the example above. -
reduxRootSelector
(optional). Customises the reducer name for the cache (default:apollo
). - Other options accepted by
InMemoryCache
, to customise the underlyingInMemoryCache
(e.g.fragmentMatcher
).
Tests
Apart from the unit tests in this repo, this cache implementation was tested with the apollo-client
and react-apollo
end-to-end tests.
Until there's a better way to bring them to this repo, they will reside in their own branches of these projects:
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].