improve feed performance

This commit is contained in:
pa
2026-01-21 16:43:16 +09:00
parent 0a1b0162c6
commit e161994783
4 changed files with 14 additions and 16 deletions

View File

@@ -68,13 +68,11 @@
import { useDataTableScrollHeight } from '../../composables/useDataTableScrollHeight';
import { useVrcxVueTable } from '../../lib/table/useVrcxVueTable';
const { feedTable } = storeToRefs(useFeedStore());
const { feedTable, feedTableData } = storeToRefs(useFeedStore());
const { feedTableLookup } = useFeedStore();
const appearanceSettingsStore = useAppearanceSettingsStore();
const vrcxStore = useVrcxStore();
const feedDisplayData = computed(() => feedTable.value.data.slice().reverse());
const { t } = useI18n();
const feedRef = ref(null);
@@ -93,7 +91,7 @@
const { table, pagination } = useVrcxVueTable({
persistKey: 'feed',
data: feedDisplayData,
data: feedTableData,
columns: baseColumns,
getRowId: (row) => `${row.type}:${row.rowId}:${row.created_at ?? ''}`,
enableExpanded: true,