Skip to content

Commit

Permalink
Improved: rearrange the ionViewDidLeave hook position(hotwax#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Dec 9, 2024
1 parent 40f5403 commit 880600a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/views/ReturnDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export default defineComponent({
const current = await this.store.dispatch('return/setCurrent', { shipmentId: this.$route.params.id })
this.observeProductVisibility();
},
ionViewDidLeave() {
this.productQoh = {};
},
computed: {
...mapGetters({
current: 'return/getCurrent',
Expand Down Expand Up @@ -329,9 +332,6 @@ export default defineComponent({
this.queryString = ''
}
},
ionViewDidLeave() {
this.productQoh = {};
},
setup() {
const store = useStore();
const router = useRouter();
Expand Down
6 changes: 3 additions & 3 deletions src/views/ShipmentDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export default defineComponent({
await this.store.dispatch('shipment/setCurrent', { shipmentId: this.$route.params.id })
this.observeProductVisibility();
},
ionViewDidLeave() {
this.productQoh = {};
},
computed: {
...mapGetters({
current: 'shipment/getCurrent',
Expand Down Expand Up @@ -350,9 +353,6 @@ export default defineComponent({
this.queryString = ''
}
},
ionViewDidLeave() {
this.productQoh = {};
},
setup() {
const store = useStore();
const router = useRouter();
Expand Down

0 comments on commit 880600a

Please sign in to comment.