Details
Details
flow and this will be further tested in a subsequent diff
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
Comment Actions
We have to make sure our types are in sync with the code. In this diff we should update redux-types by setting a payload type of started action - it would be great if Flow could catch this.
web/chat/reaction-message-utils.js | ||
---|---|---|
33 | I don't think it is a good idea to use invariants in a lot of places. Sometimes they are necessary, but usually can be avoided. In this case, there's no point in having an invariant here. We can safely execute the hook without the id set. The id becomes necessary when we want to send a message, so the invariant may be added inside useCallback. |
Comment Actions
In this diff we should update redux-types by setting a payload type of started action
D5769 should address this, but please let me know if I missed anything