Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7ab4472

Browse files
CodingDiveDamian Sznajder
authored and
Damian Sznajder
committed
Fix useLayoutEffect: Move dependency array to the second argument
1 parent 4b9e7e1 commit 7ab4472

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎snippets/snippets.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,9 +1294,8 @@
12941294
"\t${1:effect}",
12951295
"\treturn () => {",
12961296
"\t\t${2:cleanup}",
1297-
"\t},",
1298-
"\t[${3:input}]",
1299-
"})"
1297+
"\t};",
1298+
"}, [${3:input}])"
13001299
]
13011300
}
13021301
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /