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)
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
Unknown Object (File)
Nov 9 2024, 6:28 AM
Unknown Object (File)
Nov 9 2024, 6:27 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
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