Showing content from https://github.com/reactive-python/reactpy-django/issues/269 below:
Resolve `view_to_component` limitations · Issue #269 · reactive-python/reactpy-django · GitHub
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.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4