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

IonChange event triggers on wrong component due to caching

$
0
0

I have multiple Vue component which are all different pages of my app. Each page has a ion-searchbar component in it. Each ion-searchbar has a @ionChange event that filters a list on the page.

The strange thing is now, that when I type something in a searchbar in page A, the ionChange event of page B triggers. I think it is due to Ionic or Vue caching the ion-searchbar component as I find this in the stack trace: Object.onIonChange._cache.<computed>._cache.<computed>

That trace is executed once for the current page and another time for the wrong page. Is there a fix to turn off this caching or what could be the issue here?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



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