File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/source/content/user-guide Expand file tree Collapse file tree 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
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
314314always 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
You can’t perform that action at this time.
0 commit comments