Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve sessionStorage is not defined in some platforms #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PentaTea
Copy link

In some platforms, sessionStorage does not exist

image

image

@Allen-1998
Copy link

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

1 similar comment
@Allen-1998
Copy link

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

@codingcn
Copy link

我猜你在使用 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants