[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 天內回覆