#use-hover - Does it effect performance heavily?
5 messages · Page 1 of 1 (latest)
why should it impact performance?
Well say I have 10 Items all on the page, each using the use hover, is there no overhead for this? or does it perform exactly the same whether I use 1 or 10
The hook is very simple – https://github.com/mantinedev/mantine/blob/master/src/mantine-hooks/src/use-hover/use-hover.ts
I do not think that you will see any performance impact even if you render thousands of items
Yeah I did look at the docs but thought I might as well ask. I'm sure the hook itself will be fine. I just wonder how all the references will perform. thanks for taking the time to answer my question.