Now that actions are wrapped in hooks we can select data in them. This simplfies the calling code and reduces repetition.
Details
Details
- Reviewers
tomek michal varun - Commits
- rCOMM97e2dec68c52: [lib][web][native] Simplify logout call
Checked that it is possible to log out and back in with no errors showing up. Checked that invalidSessionDowngrade works correctly (by loggin out and back in before logoutActionTypes.success was dispatched)
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
thanks for adding me as a reviewer! lgtm, but going to let someone else with more react expertise take a look
lib/actions/user-actions.js | ||
---|---|---|
102 ↗ | (On Diff #34480) | How about renaming it to e.g. const callKeyserverLogOut = useKeyserverCall(logOut); |