Page MenuHomePhabricator

[lib] [refactor] useToggleUnreadStatus hook, fix up deps array after move
ClosedPublic

Authored by benschac on Mar 15 2022, 10:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 7:08 PM
Unknown Object (File)
Thu, Dec 19, 7:08 PM
Unknown Object (File)
Thu, Dec 19, 7:08 PM
Unknown Object (File)
Thu, Dec 19, 7:08 PM
Unknown Object (File)
Thu, Dec 19, 7:04 PM
Unknown Object (File)
Sat, Dec 14, 5:59 AM
Unknown Object (File)
Thu, Dec 12, 9:07 PM
Unknown Object (File)
Nov 23 2024, 7:56 PM

Details

Summary

follow up from comment in https://phabricator.ashoat.com/D3418 and Tomek's comment about dep values being incorrect.

Test Plan

test unread functionality in both web and native UI's. Unread status should work in both native and web.

Diff Detail

Repository
rCOMM Comm
Branch
new-update-hook
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added inline comments.
lib/hooks/toggle-unread-status.js
43–45

You can use a shorthand

This revision is now accepted and ready to land.Mar 16 2022, 7:12 AM
lib/hooks/toggle-unread-status.js
43–45

optional was taken out.