`useSelector` comparator swallows errors
See original GitHub issueDo you want to request a feature or report a bug? Reporting a bug.
What is the current behavior?
Errors thrown in useSelector
comparator are swallowed.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn’t have dependencies other than React. Paste the link to a CodeSandbox (https://codesandbox.io/s/new) or RN Snack (https://snack.expo.io/) example below: https://codesandbox.io/s/redux-useselector-comparator-bug-ho0e4
What is the expected behavior? Error should not be swallowed.
Which versions of React, ReactDOM/React Native, Redux, and React Redux are you using? Which browser and OS are affected by this issue? Did this work in previous versions of React Redux?
react@16.8.6
, react-dom@16.8.6
, redux@7.1.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
I’d be okay with logging caught errors in the subscription handler in dev.
Sure, we’re always open to doc improvements.