-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Data are not loaded #33
Comments
In console there are also this messages after start: [HMR] Waiting for update signal from WDS... log.js:24 |
Might be a bug, maybe @assemblethis can elaborate? |
Probably the same problem as #31. See here for a fix |
This issue is related to the call to login() in the watcher which then calls db.logIn (pouchdb-authentication). It doesn't make sense to do this, it assumes we're using pouchdb-authentication and none of the other calls to makeInstance are followed by login(). Lines 804 to 810 in 0b5c57a
I'll remove the line in PR #39. It's a relic from the original vue-pouch project and in the vue-pouch project there is a check beforehand to see whether or not auth setup: https://github.com/buhrmi/vue-pouch/blob/c1787f4f3f5ed327802946a698c06610d8330c05/index.js#L193 |
I initialize app like this:
My component then tries to load data:
When I click on the debug button the first line ($pouch.get) correctly loads document from database.
But loading of the same object by pouch config does not work - this.bill and this.all are empty arrays.
What did I do wrong?
Versions:
"pouch-vue": "0.3.4",
"pouchdb-browser": "7.1.1",
"pouchdb-find": "7.1.1",
"pouchdb-live-find": "0.4.0",
"vue": "2.6.10",
The text was updated successfully, but these errors were encountered: