codeant-ai-for-open-source[bot] commented on PR #34562:
URL: https://github.com/apache/superset/pull/34562#issuecomment-3857253684

   ## **Sequence Diagram**
   
   Shows the fix where changing the table filter causes the TableView to 
remount (via key={filterText}), resetting pagination to page 1 so filtering 
can't leave pagination out-of-sync and produce errors.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant ChartUI as "Chart UI (View as Table)"
       participant TableView as "TableView (paginated)"
       participant React as "React (re-mount)"
   
       User->>ChartUI: Open "View as Table"
       ChartUI->>TableView: Render table with pagination (page N)
       User->>TableView: Navigate to last page
       User->>TableView: Enter filter text
       TableView->>React: key changes (key=filterText) causing remount
       React-->>TableView: New instance with pagination reset to page 0
       TableView-->>User: Display filtered results (or "No results")
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to