We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2639f36 commit 15299e5Copy full SHA for 15299e5
1 file changed
src/content/reference/rsc/server-functions.md
@@ -126,11 +126,13 @@ function UpdateName() {
126
const submitAction = async () => {
127
startTransition(async () => {
128
const {error} = await updateName(name);
129
- if (error) {
130
- setError(error);
131
- } else {
132
- setName('');
133
- }
+ startTransition(() => {
+ if (error) {
+ setError(error);
+ } else {
+ setName('');
134
+ }
135
+ });
136
})
137
}
138
0 commit comments