pinia-plugin-persist icon indicating copy to clipboard operation
pinia-plugin-persist copied to clipboard

fix: resolve sessionStorage is not defined in some platforms

Open PentaTea opened this issue 3 years ago • 3 comments

In some platforms, sessionStorage does not exist

image image

PentaTea avatar May 15 '22 16:05 PentaTea

I guess you encountered this problem when using uniApp. I had the same problem before and created pinia-plugin-persist-uni based on this project to solve the problem.

It seems that your approach is not quite the same as mine, but you can refer to it.

docs

Allen-1998 avatar Jun 02 '22 07:06 Allen-1998

I guess you encountered this problem when using uniApp. I had the same problem before and created pinia-plugin-persist-uni based on this project to solve the problem.

It seems that your approach is not quite the same as mine, but you can refer to it.

docs

Allen-1998 avatar Jun 02 '22 07:06 Allen-1998

我猜你在使用 uniApp 时遇到了这个问题。我之前也遇到过同样的问题, 基于这个项目创建了pinia-plugin-persist-uni来解决这个问题。

看来你的做法和我的不太一样,不过可以参考一下。

文档

I guess you encountered this problem when using uniApp. I had the same problem before and created pinia-plugin-persist-uni based on this project to solve the problem.

It seems that your approach is not quite the same as mine, but you can refer to it.

docs

nice!

codingcn avatar Jun 13 '22 07:06 codingcn