I'm attempting to refresh the page with new parameters when the state changes:
@Watch('workspace')
onWorkspaceChanged(o: Workspace, n: Workspace){
if(o.type === n.type && o.id === n.id) return;
this.$router.push({name: this.$route.name as string, params: {id: `${n.id}`, type: `${ n.type == WorkspaceType.COMPANY ? COMPANY : PERSON }`}});
}
However, I am encountering an error
Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "previous location".
I anticipate the path to change from /profile/c/123, where 'c' is the type parameter and 123 is the id parameter, to /profile/p/321 and vice versa