Is a Quasar "single active instance" of a component/page possible? #15933
Unanswered
waldoc89
asked this question in
General - Components / Directives / etc
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, and help.
I have an app, which has a sidebar. The main dashboard (
#/
) page (Index.vue
) sets variables in setup and initialize some interactive objects such as objects that include bluetooth connection.I want to be able to navigate to a different page (
#/differentPage
) and go back to the main dashboard page without having my connection session objects detached (they do still run in the background).I'm not sure what's the best way to approach this.
for a more visual representation of my question:


^ it might be resolved if the "simulator" component will be initialised once without unsetting itself. although thinking of this again, this approach will keep things "visually" running in the background and affect performance?
What's the best way to approach this situation?
This is
src/App.vue
:and this is the component that includes a reactive component that creates a session -
Pages/Index.vue
:routs.js:
and the standard MainLayout.vue page:
Beta Was this translation helpful? Give feedback.
All reactions