Skip to content

Commit

Permalink
ADD: lazyloading component
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxTheGeeek committed Feb 4, 2025
1 parent f360b59 commit 906f960
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
</template>

<script setup>
import { ref, computed, watch, onUnmounted } from "vue";
import KeyRow from "./rows/KeyRow.vue";
import { ref, computed, watch, onUnmounted, defineAsyncComponent } from "vue";
// import KeyRow from "./rows/KeyRow.vue";
import PreviewKey from "./rows/PreviewKey.vue";
import GroupRow from "./rows/GroupRow.vue";
import SkeletonRow from "./rows/SkeletonRow.vue";
Expand All @@ -95,6 +95,8 @@ import RemoteList from "./RemoteList.vue";
import { useStakingStore } from "@/store/theStaking";
import { useSetups } from "@/store/setups";
const KeyRow = defineAsyncComponent(() => import("./rows/KeyRow.vue"));
const emit = defineEmits([
"onDrop",
"removeSingle",
Expand Down Expand Up @@ -204,7 +206,7 @@ watch(
async () => {
removeDuplicatedDoppelgangerKeys();
},
{ deep: true }
{ once: true }
);
function isKeyInGroup(key) {
Expand Down Expand Up @@ -242,7 +244,7 @@ function onDrop(event) {
}
::-webkit-scrollbar {
width: 10px;
width: 5px;
height: 5px;
cursor: pointer;
}
Expand Down

0 comments on commit 906f960

Please sign in to comment.