-
Notifications
You must be signed in to change notification settings - Fork 37
A weird bug that loses data when I refresh the page #46
Comments
我遇到类似的问题 |
后来解决了吗? |
@Seb-L, any update? Is it possible to revert back? |
I try to use localStorage alone for storage and it works fine |
I had to revert back to the older version. It works there. |
I am also facing the same issue, |
I guess, maybe you are using the store in pinia in other ts or js files, because of this, the state in the store is no longer responsive, in other words, pinia will not be hijacked again, at this time, it needs to be handled manually. 中文翻译:
|
这个问题如何解决呢? |
手动处理啊, |
@Aurorxa 大佬你说的很对,但是我没看懂你的这句话,我有一段代码在 store 挂载之前使用了里面的 state,然后就导致了 插件不再缓存,删掉后就正常了 |
我也是萌新啊,我只是猜测应该这么做的,具体源码我也没有分析,哈哈~ |
Is there a plan to fix this any time soon please? |
tip:
However, directly enter the login (http://localhost:3000/login), enter the email address and name, click login, and
enter the home page. At this time, clicking refresh will not lose user information.
you can find code in the here pinia-plugin-persist-bug-recurrent
replay.mp4
The text was updated successfully, but these errors were encountered: