Persistent layouts - preserve state #550
Unanswered
talelmishali
asked this question in
Help (Vue)
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.
-
Hello!
As part of my persistent layout, I have a slide-over component (cart), in that component, there is an
<inertia-link>
that links to the checkout page.The cart component (slide-over) is displayed conditionally (
showSlideOver: false
) and when using with a persistent layout the cart display condition never turns tofalse
and stays open when getting to the checkout page.Question is, should I extract this link to a button with a method where I set the cart display condition to false and then manually visit the checkout page, or there is a more elegant suitable solution?
Thanks!
Tal.
Cart.vue
Checkout link
Beta Was this translation helpful? Give feedback.
All reactions