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)
Wed, Nov 13, 12:42 PM
Unknown Object (File)
Sun, Nov 10, 12:10 AM
Unknown Object (File)
Sun, Nov 10, 12:10 AM
Unknown Object (File)
Sun, Nov 10, 12:10 AM
Unknown Object (File)
Fri, Nov 8, 7:42 AM
Unknown Object (File)
Tue, Nov 5, 1:03 AM
Unknown Object (File)
Oct 24 2024, 4:23 AM
Unknown Object (File)
Oct 23 2024, 3:23 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.