Skip to content

Commit

Permalink
Listen to vue:loaded (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
indykoning authored Nov 29, 2024
1 parent 43e2cf6 commit 4086d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"illuminate/database": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"illuminate/view": "^10.0|^11.0",
"rapidez/core": "^2.1|^3.0",
"rapidez/core": "^2.8|^3.0",
"blade-ui-kit/blade-heroicons": "^2.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Vue.component('wishlist', () => import('./Wishlist.vue'))

document.addEventListener('turbo:load', (event) => {
document.addEventListener('vue:loaded', (event) => {
window.app.$on('logout', () => {
localStorage.removeItem('wishlists')
});
Expand Down

0 comments on commit 4086d27

Please sign in to comment.