Noticed after merging the last few PRs, but I think converting the pokemon display to a function component may have caused a performance issue.
I believe this is caused by our use of the useEffect hook, which triggers every time a dependency is updated. If no dependency is provided, it will update every time its component re-renders.
This provides us with 2 issues:
Why is the component re-rendering this often
What dependency is changing, either in the display or in its parent, that changes this often?
I think this is a pretty big bug worthy of tackling ASAP.
Noticed after merging the last few PRs, but I think converting the pokemon display to a function component may have caused a performance issue.![image](https://user-images.githubusercontent.com/3711737/162647778-828aec1a-4005-4f82-a80d-d45762e74762.png)
I believe this is caused by our use of the
useEffect
hook, which triggers every time a dependency is updated. If no dependency is provided, it will update every time its component re-renders.This provides us with 2 issues:
I think this is a pretty big bug worthy of tackling ASAP.