Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48979

IonBadge in IonTabButton doesn't update

$
0
0

I am using Ionic React and am trying to add a IonBadge for a IonTabButton:

<IonTabButton tab="d" href="/chat">
                    <IonIcon icon={chatbubblesOutline} />
                    <IonText>Chats</IonText>
                    <IonBadge color="primary">{Number(unreadMessages)}</IonBadge>
<IonTabButton>

However, even when unreadMessages is updating, the badge number does not change. I have tried this behaviour with other components (not IonTab), and the badge count updates correctly. Any reason why IonBadge isn’t updating when wrapped in an IonTabButton?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>