reactive-python / reactpy-django

It's React, but in Python. Now with Django integration.
https://reactive-python.github.io/reactpy-django/
MIT License
322 stars 18 forks source link

Add "HTTP Mode" to ReactPy-Django #191

Closed Archmonger closed 8 months ago

Archmonger commented 11 months ago

Current Situation

All components are currently rendered solely via WebSockets. This is highly convenient for development and state management purposes, however, it limits ReactPy-Django to ASGI applications and cloud hosting services that support WebSocket.

Proposed Actions

Develop a HTTP mode, which will require two things

We might also want to develop some (optional?) way to automatically fall back to HTTP if WebSocket connections fail.

I'm honestly not sure if there's a way to make use_effect hooks work properly under this paradigm.

Archmonger commented 8 months ago

Creating a system where use_effect would work with HTTP would be a large maintenance burden, so I'm closing this issue.