From 2778357a9e4dfd7b0c55b6c5b901db1bdc05074a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 14 Jan 2023 22:31:48 +0100 Subject: [PATCH] Wrapped dynamic Vue components in shallowRef. The performance of the page is heavily degraded by components loaded dynamically via defineAsyncComponent that recursively carry behind the whole Vue machinery. By wrapping defineAsyncComponent calls in shallowRef we make sure that we only wire the root level of the newly created dynamic component. --- .../http/webapp/src/components/panels/Entities/Entity.vue | 8 +++++--- .../http/webapp/src/components/widgets/Plugin/Index.vue | 4 ++-- platypush/backend/http/webapp/src/views/Dashboard.vue | 6 ++++-- platypush/backend/http/webapp/src/views/Panel.vue | 4 ++-- platypush/backend/http/webapp/src/views/Plugin.vue | 6 +++--- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue b/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue index 722f2a65..99cb7bcd 100644 --- a/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue +++ b/platypush/backend/http/webapp/src/components/panels/Entities/Entity.vue @@ -32,7 +32,7 @@