Skip to content

Conversation

OB42
Copy link

@OB42 OB42 commented Jul 9, 2023

Hi,
the form to edit a user or team avatar seemed to be buggy,
orignally useState was used, but since the setNewAvatarUrl method does not have an immediate effect on newAvatarUrl, and newAvatarUrl was originally set to the existing avatar, the avatars where not modified.

OB42 added 2 commits July 9, 2023 23:14
The set method from useState is not instant. In most cases this will cause the url to not be modified in the base.
@klyburke
Copy link
Member

Thanks! We will review and potentially incorporate in our next book update.

1 similar comment
@klyburke
Copy link
Member

Thanks! We will review and potentially incorporate in our next book update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants