Open
Description
Current Situation and Proposed Actions
There are currently a few resolvable limitations of view_to_iframe
.
- No built-in method of signalling events back to the parent component.
- Perhaps resolving this will require creating an interface that can attach ReactPy event functions to the iframe. Will probably require some documentation to tell the user how to do this (ref: https://stackoverflow.com/questions/12967616/trigger-custom-event-from-iframe-to-parent-document).
- All provided
args
andkwargs
must be serializable values, since they are encoded into the URL.- Maybe we can wrap each individual view with another view that automatically pulls serialized arguments from the database?
- Is resolving this actually worth it? I don't believe it's possible for standard Django views to accept objects are arguments, so is there any reason why converted views should behave differently?