Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70764

Reset ion-tabs Stack or detect changes on unselected tabs

$
0
0

@haytam wrote:

Hi,

I’ve been trying to have two modes in an app (pro & personal) each has a different tabs & pages.

I did it with a toggle on a BehaviorSubject<boolean> which update the tabs.

The problem is that the toggle change is’nt detected in the unselected tabs (showing false values).

I can only think of two solutions:

  • Reset the ion-tabs stack
  • Or detect the value change in other tabs.

I don’t know how to implement neither of those.

a little bit hard to explain the issue that why I made a stackblitz
You can see the issue when you change tabs (load them in the stack) and then change the mode.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70764

Trending Articles



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