Skip to content

Commit 5e36631

Browse files
committed
Add changelog
1 parent 3136175 commit 5e36631

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/source/about/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Unreleased
2121
- :pull:`1113` - Added ``reactpy.jinja.Component`` that can be used alongside ``ReactPyMiddleware`` to embed several ReactPy components into your existing application.
2222
- :pull:`1113` - Added ``standard``, ``uvicorn``, ``jinja`` installation extras (for example ``pip install reactpy[standard]``).
2323
- :pull:`1113` - Added support for Python 3.12 and 3.13.
24+
- :pull:`1264` - Added ``reactpy.use_async_effect`` hook.
2425

2526
**Changed**
2627

@@ -46,6 +47,7 @@ Unreleased
4647
- :pull:`1113` - All backend related installation extras (such as ``pip install reactpy[starlette]``) have been removed.
4748
- :pull:`1113` - Removed deprecated function ``module_from_template``.
4849
- :pull:`1113` - Removed support for Python 3.9.
50+
- :pull:`1264` - Removed support for async functions within ``reactpy.use_effect`` hook. Use ``reactpy.use_async_effect`` instead.
4951

5052
**Fixed**
5153

tests/test_core/test_hooks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,8 @@ async def test_use_async_effect_cleanup():
500500
@reactpy.component
501501
@component_hook.capture
502502
def ComponentWithAsyncEffect():
503-
@reactpy.hooks.use_async_effect(
504-
dependencies=None
505-
) # force this to run every time
503+
# force this to run every time
504+
@reactpy.hooks.use_async_effect(dependencies=None)
506505
async def effect():
507506
effect_ran.set()
508507
return cleanup_ran.set

0 commit comments

Comments
 (0)