Page MenuHomePhabricator

[web] Memoize `loginButtonContent` and `saveButtonContent`
ClosedPublic

Authored by abosh on Aug 23 2022, 2:14 PM.
Tags
None
Referenced Files
F3520950: D4930.id15890.diff
Mon, Dec 23, 1:48 AM
F3518535: D4930.diff
Sun, Dec 22, 8:14 PM
Unknown Object (File)
Mon, Dec 16, 7:11 AM
Unknown Object (File)
Fri, Dec 13, 11:50 AM
Unknown Object (File)
Mon, Dec 9, 8:15 PM
Unknown Object (File)
Thu, Dec 5, 11:52 AM
Unknown Object (File)
Mon, Dec 2, 3:01 PM
Unknown Object (File)
Nov 9 2024, 6:29 AM
Subscribers

Details

Summary

Noticed these could be memoized.

Test Plan

Made sure everything looked as expected on the LogInForm modal and ThreadSettingsGeneralTab save button. Loading indicators showed up correctly, disappeared after submit was complete, etc.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul added inline comments.
web/modals/threads/settings/thread-settings-general-tab.react.js
140

Ah I should have caught this when reviewing D4287

This revision is now accepted and ready to land.Aug 25 2022, 10:02 PM