I think saw this issue raised somewhere but I can’t find it again and I’m hoping for a workaround.
I have two pages that have ion-checkboxes bound to the same data kept in a pinia store. I’ve found when I navigate from one page to the other (so both pages are created/cached by ionic) if I then update the store in the visible page the @update:modelValue
in the cached/non-visible page is also being triggered.
For now, I’ve changed from:
<ion-checkbox @update:modelValue="toggleReview()" :checked="status.isSelected"></ion-checkbox>
to a plain input to avoid @update:modelValue
being called in non-visible/cached pages:
<input type="checkbox" @change="toggleReview()" :checked="status?.isReview" color="secondary" />
Am I missing something?