Page MenuHomePhabricator

[native] Replace savedEmojiAvatarSelector with savedEmojiAvatarFunc
ClosedPublic

Authored by ashoat on May 31 2023, 1:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 9:10 PM
Unknown Object (File)
Thu, Apr 4, 9:10 PM
Unknown Object (File)
Thu, Apr 4, 9:09 PM
Unknown Object (File)
Thu, Apr 4, 9:01 PM
Unknown Object (File)
Feb 11 2024, 1:03 AM
Unknown Object (File)
Feb 11 2024, 1:03 AM
Unknown Object (File)
Feb 11 2024, 12:07 AM
Unknown Object (File)
Feb 10 2024, 10:44 PM
Subscribers

Details

Summary

This simple refactor diff moves the useSelector to the parent component, allowing the child component to take any generic function.

This slightly improves performance in the case where selection from Redux state is not needed, which is the case in the new registration flow.

Depends on D8041

Test Plan

Flow, along with the testing I did for the whole stack:

  1. ENS flow, both when user has an ENS avatar and when they don't
  2. Setting an emoji avatar
  3. Setting an image avatar via camera
  4. Setting an image avatar via media library
  5. Tested avatar update flow after being logged in to make sure I didn't regress anything

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable