HomePhabricator
Diffusion Comm e4f88a80c756

[web] Add dispatching SET_DEVICE_ID action

Description

[web] Add dispatching SET_DEVICE_ID action

Summary:
I added a copmonent re-rendering on device ID change and setting a device ID whenever the device ID is null.
On logout/account deletion/cookie invalidation the reducer sets device ID to null, causing SET_DEVICE_ID action to get dispatched.
For now the device ID set on the login/create account screen is also used after login/account creation as I didn't find any reasons not to.
Persistance has not yet been added

Test Plan: Test using redux tools that the device ID is present and changes on logout, cookie invalidation and account deletion.

Reviewers: tomek, atul, jacek, ashoat

Reviewed By: tomek, ashoat

Subscribers: ashoat, abosh

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

Details

Provenance
InkaSokolowskaAuthored on Aug 25 2022, 2:32 AM
Reviewer
tomek
Differential Revision
D4886: [web] Add dispatching SET_DEVICE_ID action
Parents
rCOMMe6b6eeef7b00: [web] refactor device-ID-regex-related code
Branches
Unknown
Tags
Unknown