Skip to content

Commit 9c53b48

Browse files
authored
Remove useless async (#6809)
1 parent 01edd5c commit 9c53b48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/blog/2024/04/25/react-19.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function UpdateName({}) {
8080
const [error, setError] = useState(null);
8181
const [isPending, startTransition] = useTransition();
8282

83-
const handleSubmit = async () => {
83+
const handleSubmit = () => {
8484
startTransition(async () => {
8585
const error = await updateName(name);
8686
if (error) {

0 commit comments

Comments
 (0)