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