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

   ## **Sequence Diagram**
   
   The PR changes tab refresh behavior so that when a tab becomes visible after 
a dashboard-level refresh, the Tab component triggers a lazy chart refresh 
(isLazyLoad=true) and guards duplicate handling to avoid updating global 
refresh state — preventing infinite rerenders with nested tabs.
   
   ```mermaid
   sequenceDiagram
       participant Dashboard UI
       participant Tab Component
       participant Redux Dispatcher
       participant Chart Refresher
   
       Dashboard UI->>Tab Component: Tab becomes visible 
(renderType=RENDER_TAB_CONTENT)
       Tab Component->>Tab Component: check lastRefreshTime > tabActivationTime 
&& not handled
       Tab Component->>Redux Dispatcher: dispatch onRefresh(chartIds, 
force=true, interval=0, dashboardId, isLazyLoad=true)
       Redux Dispatcher->>Chart Refresher: refreshCharts(chartIds,...)
       Chart Refresher-->>Redux Dispatcher: refresh complete
       note right of Redux Dispatcher: because isLazyLoad=true, global 
ON_REFRESH and filters refresh are NOT dispatched
   ```
   
   ---
   *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