Page MenuHomePhabricator

[native][lib] update useDeleteDiscardedIdentityAccount to throw
ClosedPublic

Authored by varun on Fri, Jun 7, 9:11 AM.
Tags
None
Referenced Files
F2158906: D12353.diff
Mon, Jul 1, 5:20 AM
F2158362: D12353.id41119.diff
Mon, Jul 1, 3:43 AM
Unknown Object (File)
Sat, Jun 29, 1:17 PM
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
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
Branch
delete (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

bumped to 5000