From 9c53b48a92008f5030815137380d86bbb0a198d8 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 29 Apr 2024 17:53:04 +0800 Subject: [PATCH] Remove useless async (#6809) --- src/content/blog/2024/04/25/react-19.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/blog/2024/04/25/react-19.md b/src/content/blog/2024/04/25/react-19.md index 8d6749c4dca..42490bcb721 100644 --- a/src/content/blog/2024/04/25/react-19.md +++ b/src/content/blog/2024/04/25/react-19.md @@ -80,7 +80,7 @@ function UpdateName({}) { const [error, setError] = useState(null); const [isPending, startTransition] = useTransition(); - const handleSubmit = async () => { + const handleSubmit = () => { startTransition(async () => { const error = await updateName(name); if (error) {