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) {