HomePhabricator
Diffusion Comm 3201ebe45589

[native] Alert staff/developers if `REHYDRATE` action payload isn't as expected

Description

[native] Alert staff/developers if REHYDRATE action payload isn't as expected

Summary:
Context: https://linear.app/comm/issue/ENG-2127/

We want to make sure that the payload we get from the REHYDRATE action has all the keys that we expect.

In this diff we add a check to redux-setup:reducer(...) for staff/developers that pulls the keys out of the REHYDRATE payload and makes sure that it matches what we expect (keys in defaultState MINUS those in persistConfig.blacklist)

Test Plan: Ensured that the alerts displayed as expected by modifying logic. Also logged values and checked that they were as expected.

Reviewers: ashoat, tomek, marcin, varun, ginsu, rohan

Reviewed By: ashoat

Subscribers: abosh

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

Details

Provenance
atulAuthored on Nov 9 2022, 9:11 AM
Reviewer
ashoat
Differential Revision
D5571: [native] Alert staff/developers if `REHYDRATE` action payload isn't as expected
Parents
rCOMM71c4b0f8b0b4: [sql] added ethereum_address to users table
Branches
Unknown
Tags
Unknown