-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Dynamic class binding not working as expected with Session Storage #265
Comments
Hi, thanks for the proper reproduction :) This is an SSR related issue: To have what you want working you need to use |
Hi @prazdevs, Firstly, thank you for your exceptional work on Pinia-persistedstate! I have a question unrelated to this issue. I've set up a store called 'profile' and configured it to use persistent storage as follows:
Now, I'm looking for a way to reset or clear the store state from the storage. I attempted the following approach, but it doesn't seem to work:
Any guidance on how to achieve this would be greatly appreciated! Thank you! |
Hi @Dev-R calling such a function worked on my side, you may want to open a proper issue with a proper reproduction repo so i could eventually investigate and help you with it. I'll be closing this one since og issue should be solved |
Hello! |
Describe the bug
I installed a pinia-plugin-persistedstate with latest Nuxt and created a store with persist enabled by Session storage class.
Tried to bind an element class with the state from the above store, it updates the class correctly without persist data but when reload with the persist data, class binding is not working.
please refer the stackbliz below
https://stackblitz.com/edit/nuxt-starter-ugwj2c?file=stores%2Fmain.js
Reproduction
.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: