Open
Description
I have this error, and the error tells me it's from Tooltip! My components can sometimes mount / unmount very quickly, however, I protect my state updates so that they only run if the component they are called from is mounted.
This is my code where the tooltip is defined:
<Tooltip
isVisible={isVisible}
content={...}
placement="top"
onClose={onExitModal}
backgroundColor="#00000040"
contentStyle={ownStyles.tooltip}
tooltipStyle={SHADOWS.default}
useInteractionManager={true}
showChildInTooltip={true}
allowChildInteraction={false}
childContentSpacing={20}
>
<TooltipChildrenContext.Consumer>
{
({ tooltipDuplicate }) => (
<TouchableWithoutFeedback
onPress={() =>{
this.HeartBounceRef && this.HeartBounceRef.animate(ANIMATIONS.heartBounce)
onPressHeart && onPressHeart()
}}
disabled={isButtonLoading}
>
<Animatable.View
ref={(ref) => {
if (!tooltipDuplicate)
this.HeartBounceRef = ref
}}
duration={300}
easing="ease-out-back"
useNativeDriver={true}
>
{...}
</Animatable.View>
</TouchableWithoutFeedback>
)
}
</TooltipChildrenContext.Consumer>
</Tooltip>
This is a Pure Component.
And now, the error:
Metadata
Metadata
Assignees
Labels
No labels