From 32f19ad48a88c7ced80c15d74a26c471d8cda376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Figueredo?= <63759223+jpfigueredo@users.noreply.github.com> Date: Sat, 21 Nov 2026 16:02:56 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Tradu=C3=A7=C3=A3o=20das=20se=C3=A7=C3=B5es?= =?UTF-8?q?=20restantes=20de=20`useOptimistic.md`=20para=20Portugu=C3=AAs?= =?UTF-8?q?=20(Brasil)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/content/reference/react/useOptimistic.md | 70 ++++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/src/content/reference/react/useOptimistic.md b/src/content/reference/react/useOptimistic.md index 27949fe711..750751855e 100644 --- a/src/content/reference/react/useOptimistic.md +++ b/src/content/reference/react/useOptimistic.md @@ -337,21 +337,21 @@ export async function submitForm() { -When the button is clicked, `setIsPending(true)` uses optimistic state to immediately show "Submitting..." and disable the button. When the Action is done, `isPending` is rendered as `false` automatically. +Quando o botão é clicado, `setIsPending(true)` usa o estado otimista para mostrar imediatamente "Submitting..." e desabilitar o botão. Quando a Ação termina, `isPending` é renderizado como `false` automaticamente. -This pattern automatically shows a pending state however `action` prop is used with `Button`: +Esse padrão mostra automaticamente um estado pendente, não importa como a prop `action` seja usada com `Button`: ```js -// Show pending state for a state update +// Mostra o estado pendente para uma atualização de estado