Skip to content

Commit 599e654

Browse files
committed
minor heading working change
1 parent 9d95e88 commit 599e654

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/content/user-guide/life-cycle-hooks.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ for that magic to work you've got to follow two rules. Thankfully we supply a
307307
`Flake8 Linter Plugin`_ to help enforce them.
308308

309309

310-
Only call hooks at the top level
311-
--------------------------------
310+
Only call outside flow controls
311+
-------------------------------
312312

313313
**Don't call hooks inside loops, conditions, or nested functions.** Instead you must
314314
always call hooks at the top level of your functions. By adhering to this rule you
@@ -317,8 +317,8 @@ IDOM to preserve the state of hooks between multiple calls to ``useState`` and
317317
``useEffect`` calls.
318318

319319

320-
Only call hooks from IDOM functions
321-
-----------------------------------
320+
Only call in IDOM functions
321+
---------------------------
322322

323323
**Don't call hooks from regular Python functions.** Instead you should:
324324

0 commit comments

Comments
 (0)