简体   繁体   中英

What happened to capacitor js storage library?

Plenty of results all over the internet linking to https://capacitorjs.com/docs/apis/storage

The page is gone and the package seems to be deprecated. I can't find any explanation for its disappearance. I also can't determine what's out there that replaces its functionality. I need to access the native storage API's in a capacitor app.

SOLVED: When capacitor 4 came out they renamed the API from @capacitor/storage to @capacitor/preferences . This is documented very poorly. Updated link is here https://capacitorjs.com/docs/apis/preferences

SOLVED: When capacitor 4 came out they removed the @capacitor/storage API and replaced it with a more limited @capacitor/preferences. This change is documented very poorly. The updated link is here https://capacitorjs.com/docs/apis/preferences

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM