Skip to content

Commit

Permalink
docstring and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Feb 3, 2025
1 parent 5945c7a commit 6033d27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/about/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Unreleased
- :pull:`1113` - Added ``standard``, ``uvicorn``, ``jinja`` installation extras (for example ``pip install reactpy[standard]``).
- :pull:`1113` - Added support for Python 3.12 and 3.13.
- :pull:`1264` - Added ``reactpy.use_async_effect`` hook.
- :pull:`1267` - Added ``shutdown_timeout`` parameter to the ``reactpy.use_async_effect`` hook.

**Changed**

Expand Down
7 changes: 6 additions & 1 deletion src/reactpy/core/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ def use_effect(
function: _SyncEffectFunc | None = None,
dependencies: Sequence[Any] | ellipsis | None = ...,
) -> Callable[[_SyncEffectFunc], None] | None:
"""See the full :ref:`Use Effect` docs for details
"""
A hook that manages an synchronous side effect in a React-like component.
This hook allows you to run a synchronous function as a side effect and
ensures that the effect is properly cleaned up when the component is
re-rendered or unmounted.
Parameters:
function:
Expand Down

0 comments on commit 6033d27

Please sign in to comment.