mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 04:01:43 +02:00
mobile: cleanup
This commit is contained in:
committed by
Abdullah Atta
parent
a813a5dd92
commit
ab1ff2f0bb
@@ -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