From 526d406621f0dfe23bf6d929e183f678ba3a70f3 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 1 Apr 2023 18:16:03 +0530 Subject: [PATCH] refactor(gui): load the cell only when it is in the viewport Signed-off-by: Pranav C --- .../nc-gui/components/cell/SingleSelect.vue | 4 - .../nc-gui/components/smartsheet/Cell.vue | 89 +++++++++++++------ 2 files changed, 60 insertions(+), 33 deletions(-) diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index bf67aeeab2..9a67b6cf93 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -246,10 +246,6 @@ useEventListener(document, 'click', handleClose, true) const selectedOpt = computed(() => { return options.value.find((o) => o.value === vModel.value) }) - -onMounted(() => { - console.log('mounted') -})