Resolve `view_to_component` limitations

Aperta
#269 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
django, python, react
Ambito
frontend

Direzione di ricerca

Start by tracing the view_to_component entry point named in the issue. The issue lists HTTP-method handling, ReactPy event attachment, and same-domain hyperlink interception as separate limitations, but names no files or tests; done would require defining and implementing the intended iframe-like behavior for these cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

complexity: 2 (medium) priority: 3 (low)
Current Situation and Proposed Actions

There are currently several limitations of using view_to_component.

  • Requires manual intervention to change HTTP methods to anything other than GET.
    • The initial HTTP request will probably always have to be GET, but it might be reasonable to automatically handle other kinds of HTTP methods depending on what the user clicked on.
    • Realistically, the end goal is to make view_to_component behave as similarly to an iframe as technologically possible.
  • ReactPy events cannot conveniently be attached to converted view HTML.
    • It might make sense to give the user some kind of interface to "query select" certain rendered items, and attach ReactPy event functions to them.
  • Has no option to automatically intercept click events from hyperlinks (such as <a href='example/'></a>).
    • All hyperlinks that point to the current domain should probably be intercepted by ReactPy and rendered via view_to_component.
    • Realistically, the end goal is to make view_to_component behave as similarly to an iframe as technologically possible.
Lingua principale
Python
Stelle
357
Fork
22
Merge medio
10h 31m
PR unite (30g)
2

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di reactive-python/reactpy-django

Tutte le issue di reactive-python/reactpy-django

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.