-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed as not planned
Description
Current Situation
There is no convenient method to fetch the Django and ReactPy sessions from within components.
Proposed Actions
Create a use_session
hook.
This interface could either return a NamedTuple
within ReactPy and Django session objects....
session = use_session()
return f"{session.django} {session.reactpy}"
Or, we could use two separate hooks...
django_session = use_django_session()
reactpy_session = use_reactpy_session()