Errors from Pouch are swallowed
See original GitHub issueHi!
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:
Unhandled promise rejection Error: "Cannot sort on field(s) "firstName" when using the default index"
validateSort index-browser.es.js:501
1 index-browser.es.js:1216
run es.promise.js:97
notify es.promise.js:114
flush microtask.js:25
argsArray index.js:18
_callee$ useFind.js:55
tryCatch runtime.js:45
invoke runtime.js:271
method runtime.js:97
asyncGeneratorStep asyncToGenerator.js:3
_next asyncToGenerator.js:25
run es.promise.js:97
notify es.promise.js:114
flush microtask.js:25
The result of this is that useFind()
returns undefined
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.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Zenker's Diverticulum: Symptoms and Treatment - WebMD
Zenker's diverticulum is a pouch that can form at the back of your throat. If it's left untreated, food and saliva can become...
Read more >What happens if you swallow a ZYN pouch? - Quora
Zyn pouches are not for swallowing but only oral use in the mouth. I think if it is swallowed, there would be similar...
Read more >Dysphagia - Symptoms and causes - Mayo Clinic
A small pouch that forms and collects food particles in the throat, often just above the esophagus, leads to difficulty swallowing, ...
Read more >Zenker's Diverticulum Causes, Symptoms, & Treatment
Zenker's Diverticulum – a sac or pouch in the back of the throat which causes difficulty swallowing by collecting and retaining food and...
Read more >Anatomy and Physiology of Feeding and Swallowing - NCBI
Eating and swallowing are complex behaviors involving volitional and reflexive activities of more than 30 nerves and muscles.
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 Free
Top 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
Fixed in 2.0.0 🎉
Ok, no worries 🙂