Closed karangattu closed 5 months ago
I think the pulse busy indicator is behaving as expected, but the server state messages are unexpected. The important part of the message logs is below. Notice that we receive the {"busy": "idle"}
message several times between "recalculating"
events and before we receive that "values"
event that completes the reactive cycle.
SEND: {"busy": "busy"}
SEND: {"busy": "busy"}
SEND: {"busy": "busy"}
SEND: {"busy": "busy"}
SEND: {"recalculating": {"name": "ring-plot", "status": "recalculating"}}
SEND: {"recalculating": {"name": "ring-plot", "status": "recalculated"}}
SEND: {"busy": "idle"}
SEND: {"recalculating": {"name": "bars-plot", "status": "recalculating"}}
SEND: {"recalculating": {"name": "bars-plot", "status": "recalculated"}}
SEND: {"busy": "idle"}
SEND: {"recalculating": {"name": "dots-plot", "status": "recalculating"}}
SEND: {"recalculating": {"name": "dots-plot", "status": "recalculated"}}
SEND: {"busy": "idle"}
SEND: {"recalculating": {"name": "pulse-plot", "status": "recalculating"}}
SEND: {"recalculating": {"name": "pulse-plot", "status": "recalculated"}}
SEND: {"busy": "idle"}
SEND: {"values": {"ring-plot": {...}, "dots-plot": {...}, "pulse-plot": {...}, "inputMessages": [{"id": "rerender", "message": {"state": "ready"}}], "errors": {}}
I created a similar app in Shiny for R where the messages logs are consistent with what we'd expect
SEND {"busy":"busy"}
SEND {"recalculating":{"name":"ring-plot","status":"recalculating"}}
SEND {"recalculating":{"name":"ring-plot","status":"recalculated"}}
SEND {"recalculating":{"name":"bars-plot","status":"recalculating"}}
SEND {"recalculating":{"name":"bars-plot","status":"recalculated"}}
SEND {"recalculating":{"name":"dots-plot","status":"recalculating"}}
SEND {"recalculating":{"name":"dots-plot","status":"recalculated"}}
SEND {"recalculating":{"name":"pulse-plot","status":"recalculating"}}
SEND {"recalculating":{"name":"pulse-plot","status":"recalculated"}}
SEND {"busy":"idle"}
SEND {"errors":{},"values":{"pulse-plot":{...},"dots-plot":{...},"bars-plot":{...},"ring-plot":{...}},"inputMessages":[]}
Notice that there's a single {"busy": "idle"}
message just before the {"values"}
message.
Duplicate of #1373? Answer: no.
When using several plots in the shiny app and
busy_indicators.use(spinners=False)
the pulse shows up but ends prematurely even before the plots have finished loading after the intentional sleep. See Jam link for recording.Jam link - https://jam.dev/c/6050cd56-f464-4986-81a8-f1dfdd168f8a
App code:
logs when debug option is turned on for local shiny