How to use @wora/relay-store - 2 common examples

To help you get started, we’ve selected a few @wora/relay-store examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github morrys / wora / packages / relay-offline / src / EnvironmentIDB.ts View on Github external
idbRecords = {
                storage: idbStorages[1],
                serialize: false,
                prefix: null,
                ...recordSourceOptions,
            };

            idbOffline = {
                storage: idbStorages[2],
                serialize: false,
                prefix: null,
                ...offlineStoreOptions,
            };
        }
        const recordSource = new RecordSource(idbRecords);
        const store = new Store(recordSource, idbStore, gcScheduler, operationLoader, getDataID);
        return new RelayModernEnvironment({ ...config, store }, offlineOptions, idbOffline);
    }
}
github morrys / wora / packages / relay-offline / src / EnvironmentIDB.ts View on Github external
idbRecords = {
                storage: idbStorages[1],
                serialize: false,
                prefix: null,
                ...recordSourceOptions,
            };

            idbOffline = {
                storage: idbStorages[2],
                serialize: false,
                prefix: null,
                ...offlineStoreOptions,
            };
        }
        const recordSource = new RecordSource(idbRecords);
        const store = new Store(recordSource, idbStore, gcScheduler, operationLoader, getDataID);
        return new RelayModernEnvironment({ ...config, store }, offlineOptions, idbOffline);
    }
}

@wora/relay-store

@wora Relay Store

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Popular @wora/relay-store functions