Skip to content

Commit

Permalink
Debug cleanup; (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen authored Jan 6, 2025
1 parent 1702cad commit 1100afc
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ export const CommunityHistory = memo(
element.removeEventListener('scrollend', endHandler);
};
},
onChange: (state) => {
if (inAThread) return;
console.log('onChange', state.getTotalSize(), state.getVirtualItems());
console.log(scrollRef.current?.scrollTop);
},
scrollToFn: (offset, { adjustments, behavior }, instance) => {
const toOffest = (offset + (adjustments || 0)) * -1;

Expand All @@ -159,7 +154,6 @@ export const CommunityHistory = memo(
initialOffset: 0,
overscan: 10,
getItemKey: (index) => flattenedMsgs[index]?.fileId || `loader-${index}`,
debug: true,
});

const items = virtualizer.getVirtualItems();
Expand Down

0 comments on commit 1100afc

Please sign in to comment.