mdbootstrap / mdb-react-ui-kit

React 18 & Bootstrap 5 & Material Design 2.0 UI KIT
https://mdbootstrap.com/docs/b5/react/
Other
1.41k stars 264 forks source link

Popover / Tooltip CPU usage #128

Closed Vrq closed 3 years ago

Vrq commented 4 years ago

The Popover / Tooltip component is using Timeouts/Intervals which leads to unnecessary CPU usage in the background.

The problematic code is: https://github.com/mdbootstrap/React-Bootstrap-with-Material-Design/blob/master/src/components/Popper/Popper.js#L32

Is there a possibility to redo the component to not cause CPU usage?

Vrq commented 4 years ago

@pglejzer are you aware of this issue? On Safari the web app is heating crazy because of this code. :(

MariaAbadi commented 4 years ago

@marveluck @smolenski-mikolaj @pglejzer can anyone please have a look at this? It looks like you are the maintainers of this project :)

pglejzer commented 4 years ago

Yes, we are. I added this problem to our task to do to fix it. We will try to add a new version in 2/3 weeks.