You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Wrapper for react-native-mmkv-storage.
* See [https://rnmmkv.now.sh/#/gettingstarted](https://rnmmkv.now.sh/#/gettingstarted) for installation instructions.
*
* @example
* const persistor = new CachePersistor({
* cache,
* storage: new MMKVStorageWrapper(new MMKVStorage.Loader().initialize()),
* });
*
*/
I get this error:
'Loader' is deprecated.ts(6385)
index.d.ts(10, 8): The declaration was marked as deprecated here.
Argument of type 'MMKVInstance' is not assignable to parameter of type 'MMKVStorageInterface'.
The types returned by 'getItem(...)' are incompatible between these types.
Type 'Promise' is not assignable to type 'Promise<string | null | undefined>'.
Type 'unknown' is not assignable to type 'string | null | undefined'.ts(2345)
(property) Loader: new () => MMKVLoader @deprecated — Use import {MMKVLoader} from "react-native-mmkv-storage"
Can someone point me to how to use use apollo-cache-persist with MMKVStorage?
The text was updated successfully, but these errors were encountered:
Following this example, from here:
I get this error:
Can someone point me to how to use use apollo-cache-persist with MMKVStorage?
The text was updated successfully, but these errors were encountered: