Page MenuHomePhabricator

[native][lib] update useDeleteDiscardedIdentityAccount to throw
ClosedPublic

Authored by varun on Fri, Jun 7, 9:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 25, 12:03 AM
Unknown Object (File)
Sun, Jun 23, 6:35 PM
Unknown Object (File)
Tue, Jun 18, 8:23 AM
Unknown Object (File)
Sun, Jun 16, 10:43 PM
Unknown Object (File)
Sat, Jun 15, 3:54 PM
Unknown Object (File)
Fri, Jun 14, 7:36 PM
Unknown Object (File)
Fri, Jun 14, 12:34 PM
Unknown Object (File)
Fri, Jun 14, 9:21 AM
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.Fri, Jun 7, 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.Fri, Jun 7, 10:57 AM
lib/actions/user-actions.js
494 ↗(On Diff #41111)

bumped to 5000