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

How to catch errors on saving #217

Open
baruchiro opened this issue Jan 17, 2021 · 0 comments
Open

How to catch errors on saving #217

baruchiro opened this issue Jan 17, 2021 · 0 comments

Comments

@baruchiro
Copy link

I'm constantly bothered by a case where the saveState will fail.

Now I have that situation, not related to the vuex-persist, but I don't want to fix it until I will support that failure case.

I mean, what if a problem occurs during the saveState? So it logged, of course, but how can I tell the user that there is a problem?

In the worst case, the user will use the app and will change some things, but he didn't know they will not be saved!

How can I catch the error and return it back to the Vue reactive lifecycle?

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

No branches or pull requests

1 participant