Ember.js + IndexedDB integration broken
See original GitHub issueNot sure how much you care about this, but there’s a really tricky bug caused by this module if you try to use Ember.js and IndexedDB in the same application. In short, Ember.js does some modifications to the global String and Array prototypes, so if you try to put()
some extended objects into IndexedDB, IndexedDB throws an error saying “an object could not be cloned.”
We fixed it in https://github.com/pouchdb/pouchdb/pull/2270 by rolling back to an older version of this function ripped from jQuery 1.9.0. I’m not sure what’s been modified in the interim or even what precisely causes the bug. I may be able to open a PR on my end, but it seems tricky enough that I’m not really sure where to start. Thought you might like to know.
Issue Analytics
- State:
- Created 9 years ago
- Comments:6
Top Results From Across the Web
ember integration test error. dealing with asynchronous side ...
1 Answer 1 ... When you use some methods, that triggers async code, like ajax, setInterval, the indexeddb api etc. You will need...
Read more >Ember data in an on- and off- line scenario
I am building my first ember application and trying to decide how best to architect the data access… The application will run on...
Read more >Ember Data adapter for IndexedDB - GitHub
This is an adapter for Ember Data that lets you store your application data offline using IndexedDB. To know more about Ember Data,...
Read more >ember-data | Yarn - Package Manager
EmberData is a lightweight reactive data library for JavaScript applications that provides composable primitives for ordering query/mutation/peek flows, ...
Read more >Hire the best Ember.js developers & Programmers - Upwork
I can help you on your next project under following categories: - Full Stack Web Application Development / Database Design / API dev...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @ljharb, this issue is super old and PouchDB has actually since implemented an aggressive object-cloning logic in order to work around subtle IndexedDB issues, so it’s probably not even reproducible anymore. I dunno what the status of Ember is.
I’m happy just to close this issue! 😃
@nolanlawson ping