Resolve `view_to_component` limitations

Ouverte
#269 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
À l'abandon
Stack technique
django, python, react
Domaine
frontend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
Python
Étoiles
357
Forks
22
Merge moyen
10 h 31 min
PR mergées (30 j)
2

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de reactive-python/reactpy-django

Toutes les issues de reactive-python/reactpy-django

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.