7.0.0 • Published 2 years ago
@wora/relay-store v7.0.0
@wora/relay-store
Installation
Install @wora/relay-store using yarn or npm:
yarn add @wora/relay-store
Examples
import { RecordSource, Store } from '@wora/relay-store';
import { CacheOptions } from "@wora/cache-persist";
import { Environment } from 'relay-runtime';
const defaultTTL: number = 10 * 60 * 1000; // optional, default
const persistOptions: CacheOptions = { defaultTTL }; // optional, default
const persistOptionsRecords: CacheOptions = {}; // optional, default
const recordSource = new RecordSource(persistOptionsRecords);
const store = new Store(recordSource, persistOptions);
const environment = new Environment({network, store});
// ...
await store.hydrate();
Documentation
Follow the link: Relay Store Documentation
6.0.1
2 years ago
7.0.0
2 years ago
6.0.0-rc.1
2 years ago
6.0.0
2 years ago
5.0.1
3 years ago
5.0.0
3 years ago
4.1.0
3 years ago
4.0.0
3 years ago
4.0.0-rc.1
3 years ago
3.2.0
4 years ago
3.1.0
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.3
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.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago