Resolve `view_to_component` limitations

Abierto
#269 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
django, python, react
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
357
Forks
22
Merge medio
10 h 31 min
PR fusionados (30 d)
2

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de reactive-python/reactpy-django

Todos los issues de reactive-python/reactpy-django

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.