You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
use_async_effect cleanup not executed when dependencies change #1327
Originally posted by masipcat January 24, 2026
Hello,
First of all, thank you for this project. I’ve been using ReactPy 2.0 in a couple of small pet projects, and it’s been really nice to work with so far.
As I mentioned in the title, the cleanup function is not executed when the dependency of the use_async_effect changes. The issue can be reproduced by transforming the test_memoized_effect_cleanup_only_triggered_before_new_effect to use an async effect:
changed the title [-]`use_async_effect` cleanup functions not executed in 2.0.0b7[/-][+]`use_async_effect` cleanup not executed when dependencies change[/+]on Jan 24, 2026
Activity
fix `use_async_effect` cleanup functions not executed in 2.0.0b7
[-]`use_async_effect` cleanup functions not executed in 2.0.0b7[/-][+]`use_async_effect` cleanup not executed when dependencies change[/+]