mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
mobile: cleanup
This commit is contained in:
committed by
Abdullah Atta
parent
fee13715f4
commit
a37dababe3
@@ -119,15 +119,9 @@ export function ListItemWrapper(props: ListItemWrapperProps) {
|
||||
clearTimeout(refreshTimeout.current);
|
||||
const idx = index;
|
||||
refreshTimeout.current = setTimeout(async () => {
|
||||
if (idx !== previousIndex.current) {
|
||||
return;
|
||||
}
|
||||
if (idx !== previousIndex.current) return;
|
||||
const resolvedItem = await items?.item(idx, resolveItems);
|
||||
if (idx !== previousIndex.current) {
|
||||
console.log("cancel", idx, previousIndex.current);
|
||||
return;
|
||||
}
|
||||
|
||||
if (idx !== previousIndex.current) return;
|
||||
refreshItem(resolvedItem);
|
||||
}, 100);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user