Fix tooltip layout measurement loop (#11284)
This commit is contained in:
@@ -425,9 +425,10 @@ function Bubble({
|
||||
},
|
||||
]}
|
||||
onLayout={e => {
|
||||
setBubbleMeasurements({
|
||||
width: e.nativeEvent.layout.width,
|
||||
height: e.nativeEvent.layout.height,
|
||||
const {width, height} = e.nativeEvent.layout
|
||||
setBubbleMeasurements(prev => {
|
||||
if (prev?.width === width && prev.height === height) return prev
|
||||
return {width, height}
|
||||
})
|
||||
}}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user