Skip to content

Commit 596752d

Browse files
Update docs/src/modules/components/AppLayoutDocsFooter.js
Signed-off-by: Olivier Tassinari <oliviertassinari@users.noreply.github.com>
1 parent 8650946 commit 596752d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/modules/components/AppLayoutDocsFooter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ export default function AppLayoutDocsFooter(props) {
337337
const handleSubmitComment = (event) => {
338338
event.preventDefault();
339339
// Block more than one submission.
340+
// Technically, setState() is async in React, so a ninja user could still
341+
// manage to trigger a double form submission. Still, let's wait and see
342+
// before adding the overhead of a React ref to solve this.
340343
if (!commentOpen) {
341344
return;
342345
}

0 commit comments

Comments
 (0)