Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missingDependancy error warning #4

Open
Brundaraj opened this issue Nov 26, 2022 · 1 comment
Open

missingDependancy error warning #4

Brundaraj opened this issue Nov 26, 2022 · 1 comment

Comments

@Brundaraj
Copy link

how do i solve missing dependancy error warning in useeffect function in SetAvatar.jsx ?

@nomenama
Copy link

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.

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

No branches or pull requests

2 participants