We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9fd21e commit 847277fCopy full SHA for 847277f
src/py/reactpy/reactpy/core/_life_cycle_hook.py
@@ -69,13 +69,10 @@ class LifeCycleHook:
69
# and save state or add effects
70
current_hook().use_state(lambda: ...)
71
72
- async def start_effect():
+ async def my_effect(stop_event):
73
...
74
75
- async def stop_effect():
76
- ...
77
-
78
- current_hook().add_effect(start_effect, stop_effect)
+ current_hook().add_effect(my_effect)
79
finally:
80
await hook.affect_component_did_render()
81
0 commit comments