Skip to content

Commit

Permalink
explanation of RowDataViewer about DFViewerInfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
paddymul committed Nov 7, 2024
1 parent beff69d commit 1c1adb8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/components/DFViewerParts/DFViewerInfinite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ export function DFViewerInfinite({
return <div>Error</div>;
}
}
// used to make sure there is a different element returned when
// Raw is used, so the component properly swaps over.
// Otherwise pinnedRows appear above the last scrolled position
// of the InfiniteRowSource vs having an empty data set.

const RowDataViewer = ({
hs,
divClass,
Expand Down Expand Up @@ -241,7 +246,7 @@ export const StaticWrapDFViewerInfinite = ({
// used for demos to exercise DFViewerInfinite

const data_wrapper: DatasourceWrapper = {
length: 5,
length: df_data.length,

data_type: 'DataSource',
datasource: {
Expand Down

0 comments on commit 1c1adb8

Please sign in to comment.