-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source.getRecordIDs is not a function #28
Comments
I make a small premise: react-relay-offline uses these libraries to manage the offline:
In the 0.11.0 release I upgraded the library that manages the relay cache.
I recommend following the repository wora for any details. https://github.com/morrys/wora/releases/tag/cache-persist%402.0.0
before import { Store } from '@wora/relay-store';
const defaultTTL: number = 10 * 60 * 1000,
const persistOptions: CacheOptions = {};
const persistOptionsRecords: CacheOptions = {};
const store = new Store(defaultTTL, persistOptions, persistOptionsRecords); after import { RecordSource, Store } from '@wora/relay-store';
import { CacheOptions } from "@wora/cache-persist";
const persistOptions: CacheOptions = {
defaultTTL
};
const persistOptionsRecords: CacheOptions = {};
const recordSource = new RecordSource(persistOptionsRecords);
const store = new Store(recordSource, persistOptions);
|
I recommend using ~ and not ^ in the react-relay-offline version and follow this repository for any update :) |
I created this issue #27 to collect all your questions and then publish them as documentation. |
So does this mean you need to push an update to this library? Or should I
manually patch the dependency or something?
…On Thu, 17 Oct 2019, 17:19 Lorenzo Di Giacomo, ***@***.***> wrote:
I created this issue #27
<#27> to collect all
your questions and then publish them as documentation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28?email_source=notifications&email_token=AFLUIUJTBHBRLK3NLV6CWL3QPCGATA5CNFSM4JB3JXO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBQV34A#issuecomment-543251952>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFLUIUME2A7TJE45PEBGS3LQPCGATANCNFSM4JB3JXOQ>
.
|
I'm sorry, I'll explain better, in version 0.11.0 I released the dependency update then the breaking change in creating the store |
Ahh right. Yes I was upgrading to react-relay-offline to 0.11.1 (explained in the initial comment). I don't install relay-store or cache-persist directly - should I be doing? |
Hi @matt-dalton,
If you are in doubt, please share your environment creation code with me. |
Ahhh perfect - works. Sorry for being slow! |
do not worry :) I admit that my documentation has to be improved but the 6.0.0 relay support and some optimizations are committing me to 100% :/ So for any information, open an issue :) |
Thanks for the amazing lib!
I've just tried upgrading from
0.10.0
->0.11.1
. I'm usingreact-relay 5.0.0
.I'm now getting an error:
From RelayModernStore.
Any idea what this could be?
The text was updated successfully, but these errors were encountered: