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

UseEffect not rerendered #218

Open
andrconstruction opened this issue Oct 14, 2020 · 1 comment
Open

UseEffect not rerendered #218

andrconstruction opened this issue Oct 14, 2020 · 1 comment
Assignees
Labels
incomplete Needs more info to resolve

Comments

@andrconstruction
Copy link

Hi, if I extract the react-avatar to an apart component it rendered only once, and not changed on a useEffect state. What this can be? I suspect that it is cached, but a cache not enabled on the react-avatar

@JorgenEvens
Copy link
Member

hi @andrconstruction,

Could you provide an example that suffers from the issue you are describing on Code Sandbox?

react-avatar reacts to property changes, just like any other React component. This means that if the properties supplied to the Avatar component change, the component should as well.

@JorgenEvens JorgenEvens added the incomplete Needs more info to resolve label Jan 2, 2021
@JorgenEvens JorgenEvens self-assigned this Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incomplete Needs more info to resolve
Projects
None yet
Development

No branches or pull requests

2 participants