mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-26 02:03:49 +02:00
improve feed performance
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user