Commit acfa4824 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'leipert-comment' into 'master'

Add a comment regarding performance of v-html

See merge request gitlab-org/gitlab!71491
parents 91a3566d e2577393
<script>
/* eslint-disable vue/no-v-html */
/**
NOTE: This file uses v-html over v-safe-html for performance reasons, see:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57842
* */
import { memoize } from 'lodash';
import { isLoggedIn } from '~/lib/utils/common_utils';
import {
......@@ -267,7 +272,9 @@ export default {
]"
class="diff-td line_content with-coverage left-side"
data-testid="left-content"
v-html="$options.lineContent(props.line.left) /* eslint-disable-line vue/no-v-html */"
v-html="
$options.lineContent(props.line.left) /* v-html for performance, see top of file */
"
></div>
</template>
<template
......@@ -389,7 +396,9 @@ export default {
},
]"
class="diff-td line_content with-coverage right-side parallel"
v-html="$options.lineContent(props.line.right) /* eslint-disable-line vue/no-v-html */"
v-html="
$options.lineContent(props.line.right) /* v-html for performance, see top of file */
"
></div>
</template>
<template v-else>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment