This commit is contained in:
tamaina 2023-07-17 14:05:06 +00:00
parent da4aba3247
commit fc91526857
1 changed files with 3 additions and 9 deletions

View File

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