Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a1fa06

Browse files
committedDec 12, 2024·
rename hook async_render -> render_view
1 parent 1e1bf36 commit 2a1fa06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/reactpy_django/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def _view_to_component(
217217
json.dumps([_args, _kwargs], default=generate_obj_name),
218218
]
219219
)
220-
async def async_render():
220+
async def _render_view():
221221
"""Render the view in an async hook to avoid blocking the main thread."""
222222
# Render the view
223223
response = await render_view(resolved_view, _request, _args, _kwargs)

0 commit comments

Comments
 (0)
Please sign in to comment.