mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
fix 955307312f209b12559bf46bfb483f8b18c3f4d2
This commit is contained in:
@@ -103,7 +103,7 @@
|
|||||||
const syncThrottledInputs = () => {
|
const syncThrottledInputs = () => {
|
||||||
throttleTimerId = null;
|
throttleTimerId = null;
|
||||||
throttledData.value = Array.isArray(data.value) ? data.value.slice() : [];
|
throttledData.value = Array.isArray(data.value) ? data.value.slice() : [];
|
||||||
throttledFilters.value = filters.value;
|
throttledFilters.value = Array.isArray(filters.value) ? filters.value.slice() : filters.value;
|
||||||
throttledSortData.value = { ...sortData.value };
|
throttledSortData.value = { ...sortData.value };
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -114,7 +114,11 @@
|
|||||||
throttleTimerId = setTimeout(syncThrottledInputs, 500);
|
throttleTimerId = setTimeout(syncThrottledInputs, 500);
|
||||||
};
|
};
|
||||||
|
|
||||||
watch([data, filters, sortData], scheduleThrottledSync);
|
watch(data, scheduleThrottledSync);
|
||||||
|
watch(() => (Array.isArray(data.value) ? data.value.length : 0), scheduleThrottledSync);
|
||||||
|
|
||||||
|
watch(filters, scheduleThrottledSync, { deep: true });
|
||||||
|
watch(sortData, scheduleThrottledSync, { deep: true });
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
if (throttleTimerId !== null) {
|
if (throttleTimerId !== null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user