This commit is contained in:
tamaina 2023-07-17 14:05:06 +00:00
parent da4aba3247
commit fc91526857

View file

@ -199,6 +199,7 @@ watch([$$(rootEl), $$(scrollObserver)], () => {
* weakBackedがtruefalseになったらexecuteQueue * weakBackedがtruefalseになったらexecuteQueue
*/ */
watch($$(weakBacked), () => { watch($$(weakBacked), () => {
console.log('weakBacked', weakBacked);
if (!weakBacked) { if (!weakBacked) {
executeQueue(); executeQueue();
} }
@ -516,19 +517,12 @@ const prepend = (item: MisskeyEntity): void => {
if ( if (
!isPausingUpdate.value && // /調 !isPausingUpdate.value && // /調
queueSize.value === 0 && //
active.value && // keepAlive active.value && // keepAlive
!backed // !backed //
) { ) {
if (items.value.has(item.id)) return; // if (items.value.has(item.id)) return; //
if (queueSize.value === 0) return unshiftItems([item]); unshiftItems([item]);
if (queueSize.value <= 5) {
// 5executeQueue
prependQueue(item);
executeQueue();
return;
}
// 5
prependQueue(item);
} else { } else {
prependQueue(item); prependQueue(item);
} }