Skip to content

Commit

Permalink
fix doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Dec 4, 2023
1 parent e9fd21e commit 847277f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/py/reactpy/reactpy/core/_life_cycle_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,10 @@ class LifeCycleHook:
# and save state or add effects
current_hook().use_state(lambda: ...)
async def start_effect():
async def my_effect(stop_event):
...
async def stop_effect():
...
current_hook().add_effect(start_effect, stop_effect)
current_hook().add_effect(my_effect)
finally:
await hook.affect_component_did_render()
Expand Down

0 comments on commit 847277f

Please sign in to comment.