Closed Miofly closed 11 months ago
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.
watch(()=> route, (val, oldValue) => { console.log('route.path not trigger', val, oldValue); console.log('why is true', JSON.stringify(val) === JSON.stringify(oldValue)); }, { immediate: true, deep: true });
i think this question is bug, watch route old and new is equal? Because the above issue is no problem in vue-route4
in App.vue
route change watch not trgger
why oldValue === val
home.vue
why onDeactivated after onBeforeRouteLeave
repo link: https://github.com/Miofly/demo-issue-template/tree/vue2-template