From 21c8c9e7de4126d3e3b3ae42164ee2f066e1e253 Mon Sep 17 00:00:00 2001 From: indy koning Date: Fri, 31 Oct 2025 13:35:18 +0100 Subject: [PATCH 1/2] Enable future preserveSharedStateOnUnmount on instantsearch --- resources/views/components/listing.blade.php | 1 + resources/views/components/productlist.blade.php | 1 + resources/views/layouts/partials/header/autocomplete.blade.php | 1 + .../partials/header/autocomplete/search-suggestions.blade.php | 1 + resources/views/listing/partials/no-results.blade.php | 1 + resources/views/listing/partials/popular-products.blade.php | 1 + 6 files changed, 6 insertions(+) diff --git a/resources/views/components/listing.blade.php b/resources/views/components/listing.blade.php index 09b679ab9..b93f0a3fa 100644 --- a/resources/views/components/listing.blade.php +++ b/resources/views/components/listing.blade.php @@ -15,6 +15,7 @@
diff --git a/resources/views/listing/partials/no-results.blade.php b/resources/views/listing/partials/no-results.blade.php index aacb97e05..8703e3a7a 100644 --- a/resources/views/listing/partials/no-results.blade.php +++ b/resources/views/listing/partials/no-results.blade.php @@ -20,6 +20,7 @@ diff --git a/resources/views/listing/partials/popular-products.blade.php b/resources/views/listing/partials/popular-products.blade.php index 3f10251ed..b07b4ab8d 100644 --- a/resources/views/listing/partials/popular-products.blade.php +++ b/resources/views/listing/partials/popular-products.blade.php @@ -16,6 +16,7 @@ function_score: {
Date: Tue, 18 Nov 2025 15:26:19 +0100 Subject: [PATCH 2/2] Centralise future config --- resources/js/components/Search/InstantSearchMixin.vue | 1 + resources/views/components/listing.blade.php | 2 +- resources/views/components/productlist.blade.php | 2 +- resources/views/layouts/partials/header/autocomplete.blade.php | 2 +- .../partials/header/autocomplete/search-suggestions.blade.php | 2 +- resources/views/listing/partials/no-results.blade.php | 2 +- resources/views/listing/partials/popular-products.blade.php | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/js/components/Search/InstantSearchMixin.vue b/resources/js/components/Search/InstantSearchMixin.vue index 328c007e1..2ee7be38c 100644 --- a/resources/js/components/Search/InstantSearchMixin.vue +++ b/resources/js/components/Search/InstantSearchMixin.vue @@ -8,6 +8,7 @@ export default { data: () => ({ searchkit: null, searchClient: null, + aisFuture: { preserveSharedStateOnUnmount: true }, }), async mounted() { this.searchkit = await this.initSearchkit() diff --git a/resources/views/components/listing.blade.php b/resources/views/components/listing.blade.php index b93f0a3fa..170ac53b2 100644 --- a/resources/views/components/listing.blade.php +++ b/resources/views/components/listing.blade.php @@ -15,7 +15,7 @@
diff --git a/resources/views/listing/partials/no-results.blade.php b/resources/views/listing/partials/no-results.blade.php index 8703e3a7a..b40632e46 100644 --- a/resources/views/listing/partials/no-results.blade.php +++ b/resources/views/listing/partials/no-results.blade.php @@ -20,7 +20,7 @@ diff --git a/resources/views/listing/partials/popular-products.blade.php b/resources/views/listing/partials/popular-products.blade.php index b07b4ab8d..7d51616a1 100644 --- a/resources/views/listing/partials/popular-products.blade.php +++ b/resources/views/listing/partials/popular-products.blade.php @@ -16,7 +16,7 @@ function_score: {