Skip to content

fixing issue with infinite scroll and a row count of 0#454

Merged
BSd3v merged 9 commits intoplotly:v35from
BSd3v:fix-infinite-no-rows
Apr 22, 2026
Merged

fixing issue with infinite scroll and a row count of 0#454
BSd3v merged 9 commits intoplotly:v35from
BSd3v:fix-infinite-no-rows

Conversation

@BSd3v
Copy link
Copy Markdown
Collaborator

@BSd3v BSd3v commented Apr 22, 2026

No description provided.

@BSd3v BSd3v linked an issue Apr 22, 2026 that may be closed by this pull request
@BSd3v BSd3v requested a review from AnnMarieW April 22, 2026 17:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an infinite-row-model edge case where setting rowCount to 0 (e.g., clearing the grid) prevents subsequent data from rendering when new rows are later provided.

Changes:

  • Add a regression test that clears infinite-scroll data (rowCount=0) and then resets it.
  • Update the infinite scrolling datasource response handler to attempt to recover from prior rowCount=0 state.
  • Document the fix in the changelog.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
tests/test_infinite_scroll.py Adds a regression test covering “clear to 0 rows then reset to data” behavior.
src/lib/fragments/AgGrid.react.js Modifies infinite scrolling response handling to handle transitions from rowCount=0.
CHANGELOG.md Adds an unreleased “Fixed” entry describing the rowCount=0 rendering issue.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_infinite_scroll.py
Comment thread src/lib/fragments/AgGrid.react.js Outdated
Comment thread src/lib/fragments/AgGrid.react.js Outdated
Comment thread src/lib/fragments/AgGrid.react.js Outdated
Comment thread src/lib/fragments/AgGrid.react.js
Copy link
Copy Markdown
Collaborator

@AnnMarieW AnnMarieW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a good workaround. The comments are helpful

@BSd3v BSd3v merged commit 50e21d6 into plotly:v35 Apr 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty row responses break infinite row model grids

3 participants