issue: https://linear.app/comm/issue/ENG-4826/uncaught-typeerror-cannot-read-properties-of-undefined-reading-status
connection was moved to keyserverStore, so it should be fetched with connectionSelector. This was causing errors
useSelector from 'react-redux' was used instead the one from web/redux/redux-utils.js, so flow check did catch it before
Details
Details
checked that the error disappeared
reloaded the page
logged out and back in
checked other places where we use useSelector from 'react-redux' on lib, web and native to see if I didn't miss anything else
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
web/push-notif/badge-handler.react.js | ||
---|---|---|
14–23 ↗ | (On Diff #30650) | It might be a good idea to mention in this invariant that it's a connection for a keyserver with ashoatKeyserverID. It might be even better to avoid an invariant - how about accessing connection status optionally? |