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)
Fri, Oct 4, 8:15 PM
Unknown Object (File)
Fri, Oct 4, 8:15 PM
Unknown Object (File)
Fri, Oct 4, 8:15 PM
Unknown Object (File)
Fri, Oct 4, 8:15 PM
Unknown Object (File)
Fri, Oct 4, 8:10 PM
Unknown Object (File)
Tue, Sep 17, 5:00 PM
Unknown Object (File)
Aug 29 2024, 11:01 PM
Unknown Object (File)
Aug 29 2024, 11:01 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 ↗(On Diff #10394)

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 ↗(On Diff #10394)

optional was taken out.