Open
Description
Following this example, from here:
/**
* 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?
Metadata
Metadata
Assignees
Labels
No labels
Activity