I'm creating an app using Vue3\Capacitor\Ionic. The HomePage.vue displays a map and uses various other functionality. This works fine but is quite heavy to load so I don't want to refresh the whole page a lot. The scenario I've struggling with is this: A person receives an URL in a email for example:
www.example.com/warning/qwerty
qwerty is a quick access code from which a db dip returns some data. This data will then update the map. If I hardcode accesscode.value = 'qwerty' everything works as designed.
In my router index file I have:
{path: '/warning/:accesscode', component: HomePage},
This also works but it reloads the HomePage, which is the scenario I'm trying to avoid. Assuming that HomePage is already open, how can present the accesscode to the homepage via a url without refreshing the page?