You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed two useEffect are used in SetAvatar.jsx. The first one should only run on page load so the dependency array should be empty.
The second one, you can add "avatars and setAvatars" as dependencies.
To be fair, I do not know why user have to choose their avatar on first sign in. The default should be set and user have the option to change it if they want would be a better UX.
how do i solve missing dependancy error warning in useeffect function in SetAvatar.jsx ?
The text was updated successfully, but these errors were encountered: