Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/526.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Connect the XY chart namespace explicitly when Reflex 0.10 pre-creates the shared Socket.IO manager with auto-connect disabled, restoring live chart rendering.
301 changes: 301 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
},
"devDependencies": {
"playwright": "1.61.1",
"socket.io": "4.8.4",
"socket.io-client": "4.8.4",
"typescript": "^7.0.2",
"vite": "^8.1.5"
},
Expand Down
5 changes: 5 additions & 0 deletions python/reflex_xy/assets/XYChart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ function xySocket() {
});
sharedSocket.on("connect", () => dbg("xy namespace connected"));
sharedSocket.on("connect_error", (e) => dbg("xy connect_error", String(e)));
// Reflex 0.10 pre-creates the shared manager with autoConnect: false.
// Activate this namespace explicitly; io() inherits the manager's setting
// even when the app plane has already opened its transport. An active
// legacy socket may already have its CONNECT packet in flight.
if (!sharedSocket.active) sharedSocket.connect();
return sharedSocket;
}

Expand Down
Loading
Loading