Skip to content

Commit 051b244

Browse files
committed
translate server actions page
1 parent 086c698 commit 051b244

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/reference/rsc/server-actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ Form gönderimi başarılı olduğunda, React formu otomatik olarak sıfırlayac
163163

164164
Daha fazla bilgi için [Formlarda Sunucu Eylemleri](/reference/rsc/use-server#server-actions-in-forms) dokümanlarına bakın.
165165

166-
### Server Actions with `useActionState` {/*server-actions-with-use-action-state*/}
166+
### `UseActionState` ile Sunucu Eylemleri {/*server-actions-with-use-action-state*/}
167167

168-
You can compose Server Actions with `useActionState` for the common case where you just need access to the action pending state and last returned response:
168+
Yalnızca pending state'ine ve son döndürülen yanıta erişmeniz gereken yaygın durumlar için Sunucu Eylemlerini `useActionState` ile oluşturabilirsiniz:
169169

170170
```js [[1, 3, "updateName"], [1, 6, "updateName"], [2, 6, "submitAction"], [2, 9, "submitAction"]]
171171
"use client";
@@ -178,13 +178,13 @@ function UpdateName() {
178178
return (
179179
<form action={submitAction}>
180180
<input type="text" name="name" disabled={isPending}/>
181-
{state.error && <span>Failed: {state.error}</span>}
181+
{state.error && <span>Başarısız: {state.error}</span>}
182182
</form>
183183
);
184184
}
185185
```
186186

187-
When using `useActionState` with Server Actions, React will also automatically replay form submissions entered before hydration finishes. This means users can interact with your app even before the app has hydrated.
187+
Sunucu Eylemleri ile `useActionState` kullanıldığında, React ayrıca hidrasyon tamamlanmadan önce girilen form gönderimlerini otomatik olarak yeniden oynatacaktır. Bu, kullanıcıların uygulama hidratlanmadan önce bile uygulamanızla etkileşime girebileceği anlamına gelir.
188188

189189
For more, see the docs for [`useActionState`](/reference/react-dom/hooks/useFormState).
190190

0 commit comments

Comments
 (0)