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, May 13, 11:51 PM
Unknown Object (File)
Mon, Apr 22, 5:57 AM
Unknown Object (File)
Mon, Apr 22, 5:57 AM
Unknown Object (File)
Mon, Apr 22, 5:57 AM
Unknown Object (File)
Mon, Apr 22, 5:54 AM
Unknown Object (File)
Mar 7 2024, 6:10 AM
Unknown Object (File)
Mar 4 2024, 2:31 AM
Unknown Object (File)
Mar 4 2024, 2:31 AM
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