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)
Tue, Dec 17, 7:24 PM
Unknown Object (File)
Fri, Nov 29, 10:25 AM
Unknown Object (File)
Thu, Nov 28, 2:51 PM
Unknown Object (File)
Nov 16 2024, 10:23 AM
Unknown Object (File)
Nov 14 2024, 10:03 PM
Unknown Object (File)
Nov 11 2024, 1:37 AM
Unknown Object (File)
Nov 11 2024, 12:48 AM
Unknown Object (File)
Nov 10 2024, 10:08 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