Skip to content

Commit

Permalink
rename hook async_render -> render_view
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Dec 12, 2024
1 parent 1e1bf36 commit 2a1fa06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reactpy_django/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _view_to_component(
json.dumps([_args, _kwargs], default=generate_obj_name),
]
)
async def async_render():
async def _render_view():
"""Render the view in an async hook to avoid blocking the main thread."""
# Render the view
response = await render_view(resolved_view, _request, _args, _kwargs)
Expand Down

0 comments on commit 2a1fa06

Please sign in to comment.