Skip to content

use_root_id hook #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 21, 2024
Prev Previous commit
Next Next commit
docstrings
  • Loading branch information
Archmonger committed Feb 21, 2024
commit cfb933c6ca225459fc85348876309b09d1f02e92
2 changes: 1 addition & 1 deletion src/reactpy_django/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ async def message_sender(message: dict):

def use_root_id() -> str:
"""Get the root element's ID. This value is guaranteed to be unique. Current versions of \
ReactPy-Django use a UUID4 string."""
ReactPy-Django return a `uuid4` string."""
scope = use_scope()

return scope["reactpy"]["id"]
Expand Down