From f7ced2e6490b740c92e7c907c5bb1af58b731c19 Mon Sep 17 00:00:00 2001 From: Jordan Blasenhauer Date: Fri, 12 Jul 2024 16:10:59 +0200 Subject: [PATCH] refractor and increase filter performance * refactor multiple filtering removing a lot of nested loops * add a "buffer" (wait some time before filtering that there aren't another filter input) in order to avoid calling too many time the filter and avoir freeze on template --- .../src/components/Forms/Group/Multiple.vue | 8 +- .../vite/src/components/Widget/Filter.vue | 100 +++++++++++++----- 2 files changed, 75 insertions(+), 33 deletions(-) diff --git a/src/client/vite/src/components/Forms/Group/Multiple.vue b/src/client/vite/src/components/Forms/Group/Multiple.vue index afa7ce601..b20b9eac6 100644 --- a/src/client/vite/src/components/Forms/Group/Multiple.vue +++ b/src/client/vite/src/components/Forms/Group/Multiple.vue @@ -177,8 +177,6 @@ const props = defineProps({ }); const multiples = reactive({ - // Store props.multiples on multiples.data and then use multiples.data to render increase performance - data: props.multiples, invisible: [], toDelete: [], }); @@ -245,7 +243,7 @@ function delGroup(group, multName, groupName) {