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

   ## **Sequence Diagram**
   
   The PR removes the deprecated react-hot-loader and its integrations, and 
updates the dev build/dev-server to use SWC + React Refresh (Fast Refresh) with 
theme merged into preamble and proxy/WebSocket rules so HMR updates are served 
correctly. Diagram shows the core developer HMR success path after these 
changes.
   
   ```mermaid
   sequenceDiagram
       participant Developer
       participant Browser
       participant DevServer
       participant BuildConfig
   
       Developer->>Browser: Edit React component (save)
       Browser->>DevServer: HMR websocket connection (watch)
       BuildConfig->>DevServer: Configure SWC + React Refresh, remove 
react-hot-loader, include theme in preamble, avoid proxying .hot-update and /ws
       DevServer->>DevServer: Rebuild + emit hot-update (React Refresh 
transform)
       DevServer-->>Browser: Send hot-update over WS / serve hot-update file
       Browser->>Browser: Apply React Refresh update (component replaced 
without full reload)
       Browser-->>Developer: Updated UI (no full page refresh)
   ```
   
   ---
   *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