Skip to content

use_session hook #196

@Archmonger

Description

@Archmonger

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()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions