Skip to content
代码片段 群组 项目
提交 843b88fb 编辑于 作者: Vitaly Slobodin's avatar Vitaly Slobodin
浏览文件

Merge branch 'xanf-fix-freeze' into 'master'

Freeze components inside `data` to avoid them being reactive

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/125747



Merged-by: default avatarVitaly Slobodin <vslobodin@gitlab.com>
Approved-by: default avatarVitaly Slobodin <vslobodin@gitlab.com>
Co-authored-by: default avatarIllya <iklymov@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -3,6 +3,7 @@ import { GlTabs, GlTab, GlSearchBoxByType, GlSorting, GlSortingItem } from '@git ...@@ -3,6 +3,7 @@ import { GlTabs, GlTab, GlSearchBoxByType, GlSorting, GlSortingItem } from '@git
import { isString, debounce } from 'lodash'; import { isString, debounce } from 'lodash';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { DEBOUNCE_DELAY } from '~/vue_shared/components/filtered_search_bar/constants'; import { DEBOUNCE_DELAY } from '~/vue_shared/components/filtered_search_bar/constants';
import { markRaw } from '~/lib/utils/vue3compat/mark_raw';
import GroupsStore from '../store/groups_store'; import GroupsStore from '../store/groups_store';
import GroupsService from '../service/groups_service'; import GroupsService from '../service/groups_service';
import ArchivedProjectsService from '../service/archived_projects_service'; import ArchivedProjectsService from '../service/archived_projects_service';
...@@ -40,7 +41,7 @@ export default { ...@@ -40,7 +41,7 @@ export default {
{ {
title: this.$options.i18n[ACTIVE_TAB_SUBGROUPS_AND_PROJECTS], title: this.$options.i18n[ACTIVE_TAB_SUBGROUPS_AND_PROJECTS],
key: ACTIVE_TAB_SUBGROUPS_AND_PROJECTS, key: ACTIVE_TAB_SUBGROUPS_AND_PROJECTS,
emptyStateComponent: SubgroupsAndProjectsEmptyState, emptyStateComponent: markRaw(SubgroupsAndProjectsEmptyState),
lazy: this.$route.name !== ACTIVE_TAB_SUBGROUPS_AND_PROJECTS, lazy: this.$route.name !== ACTIVE_TAB_SUBGROUPS_AND_PROJECTS,
service: new GroupsService( service: new GroupsService(
this.endpoints[ACTIVE_TAB_SUBGROUPS_AND_PROJECTS], this.endpoints[ACTIVE_TAB_SUBGROUPS_AND_PROJECTS],
...@@ -52,7 +53,7 @@ export default { ...@@ -52,7 +53,7 @@ export default {
{ {
title: this.$options.i18n[ACTIVE_TAB_SHARED], title: this.$options.i18n[ACTIVE_TAB_SHARED],
key: ACTIVE_TAB_SHARED, key: ACTIVE_TAB_SHARED,
emptyStateComponent: SharedProjectsEmptyState, emptyStateComponent: markRaw(SharedProjectsEmptyState),
lazy: this.$route.name !== ACTIVE_TAB_SHARED, lazy: this.$route.name !== ACTIVE_TAB_SHARED,
service: new GroupsService(this.endpoints[ACTIVE_TAB_SHARED], this.initialSort), service: new GroupsService(this.endpoints[ACTIVE_TAB_SHARED], this.initialSort),
store: new GroupsStore(), store: new GroupsStore(),
...@@ -61,7 +62,7 @@ export default { ...@@ -61,7 +62,7 @@ export default {
{ {
title: this.$options.i18n[ACTIVE_TAB_ARCHIVED], title: this.$options.i18n[ACTIVE_TAB_ARCHIVED],
key: ACTIVE_TAB_ARCHIVED, key: ACTIVE_TAB_ARCHIVED,
emptyStateComponent: ArchivedProjectsEmptyState, emptyStateComponent: markRaw(ArchivedProjectsEmptyState),
lazy: this.$route.name !== ACTIVE_TAB_ARCHIVED, lazy: this.$route.name !== ACTIVE_TAB_ARCHIVED,
service: new ArchivedProjectsService(this.groupId, this.initialSort), service: new ArchivedProjectsService(this.groupId, this.initialSort),
store: new GroupsStore(), store: new GroupsStore(),
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册