Degraded performance in 4.2.6 vs 4.2.5
Hi, firstly, thanks for maintaining this excellent tool!
I’m seeing something that smells like a memory leak after upgrading to 4.2.6 from 4.2.5. I haven’t managed to figure it out yet, but over time, state changes that impact tooltip content appear to cause the browser to hang longer and longer with the profiler showing a long sequence of repeated Recalculate Style, Apply Style Changes records. (Hangs starting from 800ms after a couple of interactions, rapidly increasing to more than 8 seconds.)
This is in a complex app with a lot of tooltips sharing a singleton so I’ve not had much luck debugging further, but reverting to 4.2.5 resolved this, so I’m fairly sure 4.2.6 is the culprit. Will post more if I figure anything else out.
mutableBox.children might not be getting cleaned up properly. (useSingleton.js)
https://github.com/atomiks/tippyjs-react/pull/334/files#diff-d20c88bd7c19ce3032fa6bcb0695c362d3a8d387700021626473ae988bda3082
Any news on this? My NextJS application keeps hanging, only when Tippy is active. Usually after switching between a couple of pages.
@Jonnotie are you using a singleton? 4.2.5 => 4.2.6 only changed one thing for singletons, if the earlier versions works I recommend downgrading to it for now. Otherwise take a look at the diff and try to revert/debug why it might be causing degraded perf. I don't have much time to work on Tippy anymore as I'm working on Floating UI which will be much better.