-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Async Storage with localForage .restored not available. #174
Comments
Same issue here, temporary fixed it like so: // hacky solution since type declartion for restored is missing in vuex-persist
// waits for IndexedDB (localForage) to be loaded into vuex so mutations aren't overridden on start up
await ((store as unknown) as { restored: Promise<unknown> }).restored; |
Use this workaround which worked for me: #15 (comment) |
running into the same issue. the restored prop is not available... unable to use the suggested solutions above. |
alright the solution is to provide |
Same issue for me, solved with @BasNijhuis solution plus @rinux55 solution. PLEASE ADD TO DOCS! |
This stopped working for some reason, but I got it back by doing
and |
Currently, we have an older project that we are migrating from javascript to typescript. Implemented typescript router but still using javascript store.
Tried npm install @types/vuex-persist with no such package available.
Ended up adding vuex-persist.d.ts, which solved the problem:
Is there a possibility to include types for future users that may experience the same problem?
The text was updated successfully, but these errors were encountered: