Page MenuHomePhabricator

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

Authored by abosh on Aug 23 2022, 2:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 7:33 AM
Unknown Object (File)
Mon, Apr 22, 8:11 AM
Unknown Object (File)
Thu, Apr 18, 3:44 PM
Unknown Object (File)
Thu, Apr 18, 3:44 PM
Unknown Object (File)
Thu, Apr 18, 3:44 PM
Unknown Object (File)
Thu, Apr 18, 3:40 PM
Unknown Object (File)
Mar 11 2024, 8:00 PM
Unknown Object (File)
Mar 8 2024, 6:43 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
web/modals/threads/settings/thread-settings-general-tab.react.js
140 ↗(On Diff #15890)

Ah I should have caught this when reviewing D4287

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