File tree 1 file changed +4
-4
lines changed
docs/source/content/user-guide
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,8 @@ for that magic to work you've got to follow two rules. Thankfully we supply a
307
307
`Flake8 Linter Plugin `_ to help enforce them.
308
308
309
309
310
- Only call hooks at the top level
311
- --------------------------------
310
+ Only call outside flow controls
311
+ -------------------------------
312
312
313
313
**Don't call hooks inside loops, conditions, or nested functions. ** Instead you must
314
314
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
317
317
``useEffect `` calls.
318
318
319
319
320
- Only call hooks from IDOM functions
321
- -----------------------------------
320
+ Only call in IDOM functions
321
+ ---------------------------
322
322
323
323
**Don't call hooks from regular Python functions. ** Instead you should:
324
324
You can’t perform that action at this time.
0 commit comments