Skip to content

Commit

Permalink
Do not reconstruct repeat blocks on every value change?
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 30, 2023
1 parent 6d3c37d commit e61abbf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions client/src/components/Form/FormRepeat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { faCaretDown, faCaretUp, faPlus, faTrashAlt } from "@fortawesome/free-so
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { defineAsyncComponent, nextTick, type PropType } from "vue";
import { useKeyedObjects } from "@/composables/keyedObjects";
import FormCard from "./FormCard.vue";
const FormNode = defineAsyncComponent(() => import("./FormInputs.vue"));
Expand Down Expand Up @@ -84,8 +82,6 @@ function getButtonId(index: number, direction: "up" | "down") {
const prefix = getPrefix(index);
return `${prefix}_${direction}`;
}
const { keyObject } = useKeyedObjects();
</script>

<template>
Expand All @@ -97,7 +93,7 @@ const { keyObject } = useKeyedObjects();

<FormCard
v-for="(cache, cacheId) in props.input.cache"
:key="keyObject(cache)"
:key="cacheId"
data-description="repeat block"
class="card"
:title="getTitle(cacheId)">
Expand Down

0 comments on commit e61abbf

Please sign in to comment.