Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3376486
D9798.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
664 B
Referenced Files
None
Subscribers
None
D9798.diff
View Options
diff --git a/lib/reducers/user-reducer.js b/lib/reducers/user-reducer.js
--- a/lib/reducers/user-reducer.js
+++ b/lib/reducers/user-reducer.js
@@ -215,6 +215,16 @@
const newUserInfos = _keyBy(userInfo => userInfo.id)(
action.payload.userInfos,
);
+ const processedUserInfos: UserInfos = processUserStoreOps(state.userInfos, [
+ { type: 'remove_all_users' },
+ ...convertUserInfosToReplaceUserOps(newUserInfos),
+ ]);
+ assertUserStoresAreEqual(
+ processedUserInfos,
+ newUserInfos,
+ action.type,
+ onStateDifference,
+ );
if (!_isEqual(state.userInfos)(newUserInfos)) {
return [
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 28, 12:36 AM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2592188
Default Alt Text
D9798.diff (664 B)
Attached To
Mode
D9798: [lib] refactor login action in `UserStore` to ops
Attached
Detach File
Event Timeline
Log In to Comment