Page MenuHomePhabricator

[native][lib] update useDeleteDiscardedIdentityAccount to throw
ClosedPublic

Authored by varun on Jun 7 2024, 9:11 AM.
Tags
None
Referenced Files
F3494854: D12353.diff
Thu, Dec 19, 7:00 AM
Unknown Object (File)
Wed, Dec 18, 7:30 AM
Unknown Object (File)
Wed, Dec 18, 7:30 AM
Unknown Object (File)
Wed, Dec 18, 7:30 AM
Unknown Object (File)
Wed, Dec 18, 7:30 AM
Unknown Object (File)
Fri, Dec 13, 9:55 PM
Unknown Object (File)
Mon, Dec 2, 1:42 AM
Unknown Object (File)
Nov 13 2024, 7:57 PM
Subscribers

Details

Summary

we need this hook to throw so that we can catch exceptions in useRegistrationServerCall and alert the user if their account was successfully created but login failed.

Depends on D12335

Test Plan

applied this patch: https://gist.github.com/vdhanan/0a8bd816ab34cd2df3fdb46a73087f0b

then confirmed that DELETE_ACCOUNT_SUCCESS was dispatched and the Alert was displayed (see screenshot)

Simulator Screenshot - iPhone 15 Pro Max - 2024-06-07 at 12.06.10.png (2×1 px, 456 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun published this revision for review.Jun 7 2024, 9:12 AM
varun edited the test plan for this revision. (Show Details)
ashoat added inline comments.
lib/actions/user-actions.js
494 ↗(On Diff #41111)

Unrelated, but I wonder if we should use the standard timeout instead of this shorter one. 500ms is rather short

This revision is now accepted and ready to land.Jun 7 2024, 10:57 AM
lib/actions/user-actions.js
494 ↗(On Diff #41111)

bumped to 5000