[英]What happened to capacitor js storage library?
Plenty of results all over the internet linking to https://capacitorjs.com/docs/apis/storage互联网上的大量结果链接到https://capacitorjs.com/docs/apis/storage
The page is gone and the package seems to be deprecated.该页面消失了,package 似乎已被弃用。 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.
我需要在电容器应用程序中访问本机存储 API。
SOLVED: When capacitor 4 came out they renamed the API from @capacitor/storage
to @capacitor/preferences
.已解决:当电容器 4 出现时,他们将 API 从
@capacitor/storage
重命名为@capacitor/preferences
。 This is documented very poorly.这记录得很差。 Updated link is here https://capacitorjs.com/docs/apis/preferences
更新的链接在这里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.已解决:当电容器 4 出来时,他们移除了@capacitor/storage API 并用更有限的@capacitor/preferences 取而代之。 This change is documented very poorly.
这种变化的记录很差。 The updated link is here https://capacitorjs.com/docs/apis/preferences
更新的链接在这里https://capacitorjs.com/docs/apis/preferences
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.