Update: ripping out the prop function (i.e., replacing props: ({params}) => ({ objectId: Number(params.objectId) })
with props: true
and mapping to Number
on the component side does not resolve the issue.
This is the only way I could find to get vue-router
to work as advertised in an Ionic context:
In setup function
const trueObjectIdFromRoute = computed(
() => router.currentRoute.value.params["objectId"]
)