Skip to content

Commit 2a1fa06

Browse files
committed
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

+1-1
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)