HomePhabricator
Diffusion Comm e2afd44c93a1

[lib] Introduce new SET_DATA_LOADED action

Description

[lib] Introduce new SET_DATA_LOADED action

Summary:
This is the first part of ENG-4048.

Context: dataLoaded is used in isLoggedIn here, which is in turn used in LogInHandler here to decide when to dismiss LoggedOutModal and the other accountModals (such as RegistrationNavigator).

We want to defer dismissal until the avatar setting keyserver endpoint returns. The easiest way to do that is make sure dataLoaded doesn't get set at the end of register. To achieve that, I'm going to use a separate Redux action to set dataLoaded, and in a later diff will stop registration from setting dataLoaded.

Test Plan: Tested registration (SIWE and otherwise) flows on native and web

Reviewers: atul, ginsu

Reviewed By: atul

Subscribers: tomek

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

Details

Provenance
ashoatAuthored on Jun 5 2023, 8:19 AM
Reviewer
atul
Differential Revision
D8107: [lib] Introduce new SET_DATA_LOADED action
Parents
rCOMM40e91f42217a: [native] Display "Skip"/"Done" button to exit community creation flow
Branches
Unknown
Tags
Unknown