2.3.1 • Published 3 years ago

@wora/apollo-cache v2.3.1

Weekly downloads
546
License
MIT
Repository
github
Last release
3 years ago

@wora/apollo-cache

Installation

Install @wora/apollo-cache using yarn or npm:

yarn add @wora/apollo-cache

Examples

import ApolloCache from '@wora/apollo-cache';

const cache = new ApolloCache({...});

// await before instantiating ApolloClient, else queries might run before the cache is persisted
await cache.hydrated();

// Continue setting up Apollo as usual.

const client = new ApolloClient({
  cache,
  ...
});

Options

  • constructor(options?: InMemoryCacheConfig, persistOptions?:CacheOptions);

CacheOptions

2.3.1

3 years ago

2.3.0

3 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago