From 4ac6371dc6a1262652a7f2b5ecc515cc36a43282 Mon Sep 17 00:00:00 2001 From: indykoning <15870933+indykoning@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:57:10 +0100 Subject: [PATCH] Listen to vue:loaded (#6) --- composer.json | 2 +- resources/js/package.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 019799c..9d021ca 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": "^8.0|^8.1|^8.2", "laravel/framework": "*", - "rapidez/core": "^2.0|^3.0" + "rapidez/core": "^2.8|^3.0" }, "autoload": { "psr-4": { diff --git a/resources/js/package.js b/resources/js/package.js index 00d3b8f..b2c3809 100644 --- a/resources/js/package.js +++ b/resources/js/package.js @@ -1,6 +1,6 @@ import { set, useDebounceFn, useMemoize } from "@vueuse/core"; -document.addEventListener('turbo:load', function () { +document.addEventListener('vue:loaded', function () { window.app.$on('postcode-change', useDebounceFn(updateAddressFromPostcodeservice, 100)); })