7.1.8 • Published 7 months ago

@vyer-technologies/relay-store v7.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@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

7.1.7

7 months ago

7.1.6

7 months ago

7.1.5

7 months ago

7.1.8

7 months ago

7.0.8

7 months ago

7.0.7

7 months ago

7.0.6

7 months ago

7.0.9

7 months ago

7.1.3

7 months ago

7.1.2

7 months ago

7.1.1

7 months ago

7.1.0

7 months ago

7.0.5

9 months ago

7.0.4

9 months ago

7.0.3

9 months ago

7.0.2

9 months ago

7.0.1

9 months ago

7.0.0

9 months ago