Page MenuHomePhabricator

[native] Update `useRemoveUserAvatar` to return `isLoading`
ClosedPublic

Authored by atul on Apr 19 2023, 11:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 11:23 PM
Unknown Object (File)
Fri, Nov 1, 9:13 AM
Unknown Object (File)
Fri, Nov 1, 9:13 AM
Unknown Object (File)
Fri, Nov 1, 9:12 AM
Unknown Object (File)
Fri, Nov 1, 9:09 AM
Unknown Object (File)
Oct 2 2024, 1:43 PM
Unknown Object (File)
Oct 1 2024, 12:31 PM
Unknown Object (File)
Oct 1 2024, 12:31 PM
Subscribers

Details

Summary

We modify useRemoveUserAvatar to return a tuple of useRemoveUserAvatar, isLoading.

In subsequent diff will consume this along w/ isLoading from useSelectFromGalleryAndUpdateUserAvatar` to render a spinner over the image when operation is in progress.

For convenience, I'm going to have a multiple diffs where I update the EditUserAvatar flow, and then a single diff where I update the EditThreadAvatar flow to match. There's a lot of repetition, but I have ideas on how to consolidate things once we have a shippable experience.


Depends on D7527

Test Plan

Consume inProgress in EditUserAvatar and log the value. The value being printed matched up with the progress of the flow.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable