apollographql / apollo-cache-persist

🎏 Simple persistence for all Apollo Cache implementations
MIT License
1.39k stars 118 forks source link

[Request] - Please update code for MMKVStorage instance creation as per their new implementation #499

Closed vaibhav-toddleapp closed 1 year ago

vaibhav-toddleapp commented 1 year ago

Hey! according to documentation of MMKVStorage, instance creation has slightly different approach. see the below link and update the documentation code. ( if you feel it is helpful then only 🙃 )

https://rnmmkv.vercel.app/#/creatinginstance

Example:


import { MMKVLoader } from "react-native-mmkv-storage";

const MMKVwithID = new MMKVLoader()
  .withInstanceID("mmkvWithID")
  .initialize();
ansmlc commented 7 months ago

Did you figure out how to do this with apollo-cache-persist?

/**