question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ember.js + IndexedDB integration broken

See original GitHub issue

Not 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:closed
  • Created 9 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
nolanlawsoncommented, Sep 6, 2016

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! 😃

0reactions
ljharbcommented, Sep 6, 2016
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found