V-drawer-tab content not visible in internal pages #17774
Unanswered
Malfunction13
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community,
I am not sure if this is a bug or I am doing something wrong so decided to ask here first before creating a bug report.
Hopefully you can help me!
Use case:
I have a v-app-bar component that is passed to a parent Header component. The header component is injected to individual page components and conditionally renders different icons and buttons depending on the page.
The hamburger button toggles a v-navigation-drawer sidebar menu, implemented as the documentation suggests.
The navigation drawer with a v-for loop creates v-expansion panels that hold inside them v-list of items that serve as links to the product list page and on-click redirects with query params. Sort of nested menu with sub-menu items.
The problem:
The v-navigation-drawer has content ONLY on the index page OR when the internal pages are accessed via the drawer links from the menu options of the drawer from homepage.
If the page is accessed by typing the URL in the address bar of the browser OR via a redirect from any other navigation item, such as a button outside of the header menu, the drawer items are empty.
Probably important details:
Debugging amazement:
I tried adding a plain
If instead of fetching from the vueX store the computed prop passes dummy data, it works. So somehow the same component cannot consistently fetch from store when passed to other components. And the difference comes from the way the user is being redirected to other pages.
I have been tinkering around this for quite some time and the only viable suspicion left is towards the storage and potential issues in loading data from it when accessing non-index pages.
Below is the code of the component
Beta Was this translation helpful? Give feedback.
All reactions