[BUG] `set_props` streaming
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
调研方向
Start by reproducing the issue with the example app in the report and trace how streaming callbacks deliver set_props updates to the client. Check the related open pull request #4129 for the current investigation. Done means the first set_props update reaches the client before the callback yields, with regression coverage for the reported sequence.
由索引模型根据 Issue 内容生成。
描述
In Dash 4.5.0:
A streaming callback does not send set_props to the client until the next yield.
Below is an example app:
from dash import LocalSharedStorage, Dash, html, dcc, Input, Output, callback, set_props, no_update
import asyncio
app = Dash(__name__,
shared_storage=LocalSharedStorage())
app.layout = html.Div([
html.Button(id='input', type='button', children='Click Me'),
html.Div(id='output')
])
@callback(
Output('output', 'id'),
Input('input', 'n_clicks'),
prevent_initial_call=True
)
async def update_output(value):
set_props('output', {'children': html.Div(id='output2', children='Loading...')})
# yield no_update
await asyncio.sleep(1)
set_props('output2', {'children': f'You entered: {value}'})
yield no_update
if __name__ == '__main__':
app.run(debug=True)
- 主要语言
- Python
- 星标
- 24.5k
- 派生
- 2.3k
- 平均合并
- 3 天 7 小时
- 30 天内合并 PR
- 30
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plotly/dash 的其他 Issue
-
P2 plotly-internal size: 1 task
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Extract graph schema validation into properly named test可能已有人在做 @Nice6042 于 90 天前认领。 未关闭good first issue P3 size: 1 task
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
[BUG] Patch.update mutates a shared mapping and rewrites earlier merges可能已有人在做 @peterolkhov 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
维护者通常 1 天内回复
-
[BUG] dcc.Dropdown: virtualized list keeps the height measured at opening when options grow while the menu is open可能已有人在做 @KoolADE85 于 2 天前认领。 未关闭bug P3 size: 1
plotly/dash#4131 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BUG] dcc.Upload contents and dcc.Geolocation position docstrings describe the wrong value format可能已有人在做 @ZainnQureshii 于 5 天前认领。 未关闭bug P3 size: 1
难度 1/5 1 小时以内 新手友好度 30/100
维护者通常 1 天内回复
相似的 Issue
-
[BUG] HTTP lifecycle dispatch treats a NO_PROXY-only environment as corporate egress and skips the resolve-and-pinned session可能已有人在做 @bodapatisaikrishna 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
external
难度 2/5 1-3 小时 新手友好度 65/100
langchain-ai/docs#7652 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
elastic/oblt-aw#2513 · 1 条评论 ·
维护者通常 1 天内回复
-
bug p2
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 75/100
NCAR/CLM-Tutorial#113 · 1 条评论 ·
维护者通常 1 天内回复