HomePhabricator
Diffusion Comm eb402d876283

[lib] Avoid unnecessary state change in user reducer

Description

[lib] Avoid unnecessary state change in user reducer

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

Reviewers: tomek, kamil

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12328

Details

Provenance
inkaAuthored on Jun 6 2024, 3:27 AM
Reviewer
tomek
Differential Revision
D12328: [lib] Avoid unnecessary state change in user reducer
Parents
rCOMMa5db4961c568: [lib] Fetch user avatars for new user ids
Branches
Unknown
Tags
Unknown