Skip to content

Commit

Permalink
Remove useless async (#6809)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn authored Apr 29, 2024
1 parent 01edd5c commit 9c53b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/blog/2024/04/25/react-19.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9c53b48

Please sign in to comment.