Support `ref` prop
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, python, react
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 8.1k
- Forks
- 332
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus reactive-python/reactpy
-
Outdated GIF in Docs Offenpriority-3-low type-docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
reactive-python/reactpy#1034 ·
-
priority-2-moderate type-revision
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
reactive-python/reactpy#1319 ·
-
priority-1-high
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
reactive-python/reactpy#1277 ·
-
priority-3-low
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
reactive-python/reactpy#1273 · 1 Reaktion ·
-
priority-2-moderate
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
reactive-python/reactpy#1272 · 2 Reaktionen ·
Alle Issues in reactive-python/reactpy
Ähnliche Issues
-
link-check link-check:sphinx-theme
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
OpenHands/extensions#626 · 1 Kommentar ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
CSCfi/sd-search-api#39 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100