Last active
November 2, 2018 18:30
-
-
Save k9/572c7d1a99da62e42aa61ce3fb6e57da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>PouchDB Issue</title> | |
<script src="https://cdn.jsdelivr.net/npm/pouchdb@7.0.0/dist/pouchdb.min.js"></script> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db = new PouchDB('test') | |
console.log(db.adapter) | |
db.put({ '_id': '5', x: 1 }).then(() => { | |
console.log('promise') | |
db.allDocs().then(z => console.log(z)) | |
}).catch((z) => console.log(z)) | |
db.put({ '_id': '6', x: 2 }, () => { | |
console.log('callback') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment