-
Notifications
You must be signed in to change notification settings - Fork 9
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
Errors from Pouch are swallowed #7
Comments
Hi! Thank you for the support and submitting this issue. It's a real issue. I think errors could be thrown and captured using an error boundary. Fixing this will take a few moments, because I'll also rewrite and simplify the subscription logic. |
Just started using this library and quickly ran into the same issue. |
@gajus, nice to get new users! Could you try the new beta release, Change log: Docs: |
Sorry, stripped PouchDB from client and ended up writing an adhoc "database" using https://github.com/paularmstrong/normalizr. It is better suited for an esoteric task that I have. |
Ok, no worries 🙂 |
Fixed in 2.0.0 🎉 |
Hi!
Great work on this library, but I think I found an issue.
If you pass some parameter to
useFind
that causes Pouch to throw an error (my problem was I asked to sort on a column that has no index), this error is swallowed and never shows up in the console. I had to step deep into the code stack to eventually find the error:The result of this is that
useFind()
returnsundefined
and you never know there was a problem. Now that I know the problem I can sort out my index, but the issue I am reporting is that react-pouchdb swallows errors from Pouch.The text was updated successfully, but these errors were encountered: