Support `ref` prop
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- javascript, python, react
- 領域
- frontend
研究方向
Start by reading the original discussion in issue #1134 and the use_messenger hook plans linked from pull request #881. Determine whether ref support should use client-server communication or a server-side approach; done means an agreed, feasible equivalent to React's canvas ref behavior.
由索引模型根據 Issue 內容生成。
描述
Original discussion: #1134
cc: @slauko
Current Situation
With several tags such as canvas, ReactJS will "fill in" the context into the ref=... you provide. We currently do not have an equivalent feature in ReactPy. Currently, all props provided to ReactPy are serialized and sent to the client as-is.
Currently we have no mechanism that would enable ReactJS/ReactPy to intelligently "fill in" this ref. To add compatibility for this feature, ReactPy would need to start treating reactpy.html.canvas["ref"] as a unique prop.
Proposed Actions
In all likelihood, creating an equivalent API to ReactJS <canvas ref=... /> would rely on our future plans for a use_messenger hook to allow for arbitrary client->server real-time communication.
There's also a chance we develop this fully server-sided, but that's probably not technologically feasible.
- 主要語言
- Python
- 星號
- 8.1k
- 分支
- 332
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
reactive-python/reactpy 的其他 Issue
-
priority-3-low type-docs
難度 2/5 1-3 小時 新手友好度 65/100
reactive-python/reactpy#1034 ·
-
priority-2-moderate type-revision
難度 5/5 一週以上 新手友好度 25/100
reactive-python/reactpy#1319 ·
-
priority-1-high
難度 5/5 一週以上 新手友好度 25/100
reactive-python/reactpy#1277 ·
-
priority-3-low
難度 5/5 一週以上 新手友好度 35/100
reactive-python/reactpy#1273 · 1 個 reaction ·
-
priority-2-moderate
難度 5/5 一週以上 新手友好度 30/100
reactive-python/reactpy#1272 · 2 個 reaction ·
查看 reactive-python/reactpy 的全部 Issue
相似的 Issue
-
🐛 Bug 🔔 Pending processing
難度 2/5 1-3 小時 新手友好度 84/100
jumpserver/jumpserver#17584 ·
-
link-check link-check:sphinx-theme
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 2/5 1-3 小時 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
難度 2/5 1-3 小時 新手友好度 88/100
OpenHands/extensions#626 · 1 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 90/100
CSCfi/sd-search-api#39 ·