Why radix-UI headless component render internal components if they're not mounted
After running the react profile for one of my page, I noticed this deep nested renders after using a RadixUI Dropdown component.
As of now, I am only rendering the Button 👇
and
BookDropdownContent component itself has not been mounted or triggered yet, and still it has to render all of that stuff as you can see in the video.
Now my question is:
- Is this the intended behaviour from RadixUI component?
- Could have neightbour components/element could be the reason?0 Replies