Page MenuHomePhabricator

[lib] Avoid unnecessary state change in user reducer
ClosedPublic

Authored by inka on Jun 6 2024, 3:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 10:23 AM
Unknown Object (File)
Thu, Nov 14, 10:03 PM
Unknown Object (File)
Mon, Nov 11, 1:37 AM
Unknown Object (File)
Mon, Nov 11, 12:48 AM
Unknown Object (File)
Sun, Nov 10, 10:08 PM
Unknown Object (File)
Sun, Nov 10, 11:57 AM
Unknown Object (File)
Mon, Nov 4, 3:31 AM
Unknown Object (File)
Fri, Oct 25, 4:37 PM
Subscribers

Details

Summary

We don't want to introdue state change if it didn't really change. This will avoid unneccesaryy rerenders

Test Plan

Tested that if filteredUserIDs.length === 0 the returcer returns unchanged state

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable