Skip to content

Commit a31d162

Browse files
committed
docs: minor improvements
1 parent 29824ec commit a31d162

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/website/content/docs/configurations.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,18 @@ then the React Hook call:
119119
useIsomorphicLayoutEffect(() => { setCount(count => count + 1); }, []);
120120
```
121121

122-
will be evaluated as an:
122+
will be evaluated as:
123123

124124
```tsx
125125
useLayoutEffect(() => { setCount(count => count + 1); }, []);
126126
```
127127

128+
and:
129+
130+
```tsx
131+
useEffect(() => { setCount(count => count + 1); }, []);
132+
```
133+
128134
So that both the `hooks-extra/no-direct-set-state-in-use-effect` and `hooks-extra/no-direct-set-state-in-use-layout-effect` rules can perform checks on it.
129135

130136
## Examples

0 commit comments

Comments
 (0)