Skip to content

Commit 39a9cd1

Browse files
committed
Resolve merge conflicts
1 parent 721a409 commit 39a9cd1

File tree

5 files changed

+3
-32
lines changed

5 files changed

+3
-32
lines changed

src/content/blog/index.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,13 @@ Este blog es la fuente oficial de las actualizaciones del equipo React. Cualquie
1010

1111
<div className="sm:-mx-5 flex flex-col gap-5 mt-12">
1212

13-
<<<<<<< HEAD
14-
<BlogCard title="React 19 Beta " date="25 de abril de 2024" url="/blog/2024/04/25/react-19">
15-
=======
1613
<BlogCard title="React Conf 2024 Recap" date="May 22, 2024" url="/blog/2024/05/22/react-conf-2024-recap">
17-
>>>>>>> b12743c31af7f5cda2c25534f64281ff030b7205
1814

1915
Last week we hosted React Conf 2024, a two-day conference in Henderson, Nevada where 700+ attendees gathered in-person to discuss the latest in UI engineering. This was our first in-person conference since 2019, and we were thrilled to be able to bring the community together again ...
2016

2117
</BlogCard>
2218

23-
<<<<<<< HEAD
24-
<BlogCard title="React 19 Beta Upgrade Guide" date="25 de abril de 2024" url="/blog/2024/04/25/react-19-upgrade-guide">
25-
=======
2619
<BlogCard title="React 19 RC " date="April 25, 2024" url="/blog/2024/04/25/react-19">
27-
>>>>>>> b12743c31af7f5cda2c25534f64281ff030b7205
2820

2921
In the React 19 RC Upgrade Guide, we shared step-by-step instructions for upgrading your app to React 19. In this post, we'll give an overview of the new features in React 19, and how you can adopt them ...
3022

src/content/learn/synchronizing-with-effects.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,11 +1600,7 @@ El Efecto de cada uno de los renderizados tiene su propia variable `ignore`. Ini
16001600
- La solicitud para `'Bob'` se completa
16011601
- El Efecto del renderizado de `'Bob'` **no hace nada porque su variable `ignore` fue definida como `true`**
16021602
1603-
<<<<<<< HEAD
16041603
Para ignorar el resultado de una llamada de API desactualizada, también puedes usar [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) para cancelar solicitudes que ya no son necesarias. Sin embargo, por sí solo esto no es suficiente para protegerse contra las condiciones de carrera. Se podrían encadenar más pasos asíncronos después del fetch, por lo que el uso de una bandera explícita como `ignore` es la forma más confiable de solucionar este tipo de problemas.
1605-
=======
1606-
In addition to ignoring the result of an outdated API call, you can also use [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) to cancel the requests that are no longer needed. However, by itself this is not enough to protect against race conditions. More asynchronous steps could be chained after the fetch, so using an explicit flag like `ignore` is the most reliable way to fix this type of problem.
1607-
>>>>>>> b12743c31af7f5cda2c25534f64281ff030b7205
16081604
16091605
</Solution>
16101606

src/content/reference/react/apis.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,12 @@ Además de [Hooks](/reference/react) y [Componentes](/reference/react/components
1010

1111
---
1212

13-
<<<<<<< HEAD
1413
* [`createContext`](/reference/react/createContext) te permite definir y proporcionar contexto a los componentes hijos. Se utiliza con [`useContext`.](/reference/react/useContext)
1514
* [`forwardRef`](/reference/react/forwardRef) permite que tu componente exponga un nodo DOM como una referencia al padre. Se utiliza con [`useRef`.](/reference/react/useRef)
1615
* [`lazy`](/reference/react/lazy) te permite retrasar la carga del código de un componente hasta que se renderice por primera vez.
1716
* [`memo`](/reference/react/memo) permite que tu componente omita nuevas renderizaciones con las mismas props. Se utiliza con [`useMemo`](/reference/react/useMemo) y [`useCallback`.](/reference/react/useCallback)
1817
* [`startTransition`](/reference/react/startTransition) te permite marcar una actualización de estado como no urgente. Similar a [`useTransition`.](/reference/react/useTransition)
19-
=======
20-
* [`createContext`](/reference/react/createContext) lets you define and provide context to the child components. Used with [`useContext`.](/reference/react/useContext)
21-
* [`forwardRef`](/reference/react/forwardRef) lets your component expose a DOM node as a ref to the parent. Used with [`useRef`.](/reference/react/useRef)
22-
* [`lazy`](/reference/react/lazy) lets you defer loading a component's code until it's rendered for the first time.
23-
* [`memo`](/reference/react/memo) lets your component skip re-renders with same props. Used with [`useMemo`](/reference/react/useMemo) and [`useCallback`.](/reference/react/useCallback)
24-
* [`startTransition`](/reference/react/startTransition) lets you mark a state update as non-urgent. Similar to [`useTransition`.](/reference/react/useTransition)
2518
* [`act`](/reference/react/act) lets you wrap renders and interactions in tests to ensure updates have processed before making assertions.
26-
>>>>>>> b12743c31af7f5cda2c25534f64281ff030b7205
2719

2820
---
2921

src/content/reference/react/useEffect.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,11 @@ function ChatRoom({ roomId }) {
6262
6363
* Si alguna de tus dependencias son objetos o funciones definidas dentro del componente, existe el riesgo de que **provoquen que el Efecto se re-ejecute más veces de las necesarias.** Para solucionar esto, elimina las dependencias innecesarias de [objetos](#removing-unnecessary-object-dependencies) y [funciones](#removing-unnecessary-function-dependencies). También puedes [extraer las actualizaciones de estados](#updating-state-based-on-previous-state-from-an-effect) y la [lógica no reactiva](#reading-the-latest-props-and-state-from-an-effect) fuera de tu Efecto.
6464
65-
<<<<<<< HEAD
6665
* Si tu efecto no ha sido causado por una interacción (como un clic), React dejará que el navegador **pinte primero la pantalla actualizada antes de ejecutar tu efecto.** Si tu efecto está haciendo algo visual (por ejemplo, posicionar un tooltip), y el retraso es notable (por ejemplo, parpadea), tendrás que reemplazar `useEffect` por [`useLayoutEffect`.](/reference/react/useLayoutEffect)
67-
=======
68-
* If your Effect is caused by an interaction (like a click), **React may run your Effect before the browser paints the updated screen**. This ensures that the result of the Effect can be observed by the event system. Usually, this works as expected. However, if you must defer the work until after paint, such as an `alert()`, you can use `setTimeout`. See [reactwg/react-18/128](https://github.com/reactwg/react-18/discussions/128) for more information.
6966
70-
* Even if your Effect was caused by an interaction (like a click), **React may allow the browser to repaint the screen before processing the state updates inside your Effect.** Usually, this works as expected. However, if you must block the browser from repainting the screen, you need to replace `useEffect` with [`useLayoutEffect`.](/reference/react/useLayoutEffect)
71-
>>>>>>> b12743c31af7f5cda2c25534f64281ff030b7205
67+
* Si tu Efecto es causado por una interacción (como un clic), **React puede ejecutar tu Efecto antes de que el navegador pinte la pantalla actualizada**. Esto asegura que el resultado del Efecto pueda ser observado por el sistema de eventos. Normalmente, esto funciona como se espera. Sin embargo, si necesitas posponer el trabajo hasta después de pintar, como una `alert()`, puedes usar `setTimeout`. Consulta [reactwg/react-18/128](https://github.com/reactwg/react-18/discussions/128) para más información.
7268
73-
* Incluso si tu Efecto fue causado por una interacción (como un clic), el navegador podría **volver a pintar la pantalla antes de procesar las actualizaciones de estado dentro de tu Efecto.** Normalmente, eso es lo que quieres. Sin embargo, si debes impedir que el navegador pinte de nuevo la pantalla, tendrás que reemplazar `useEffect` por [`useLayoutEffect`.](/reference/react/useLayoutEffect)
69+
* Incluso si tu Efecto fue causado por una interacción (como un clic), **React podría permitir al navegador que volviera a pintar la pantalla antes de procesar las actualizaciones de estado dentro de tu Efecto.** Normalmente, eso es lo que quieres. Sin embargo, si debes impedir que el navegador pinte de nuevo la pantalla, tendrás que reemplazar `useEffect` por [`useLayoutEffect`.](/reference/react/useLayoutEffect)
7470
7571
* Los efectos **sólo se ejecutan en el lado del cliente.** No se ejecutan durante el renderizado del lado del servidor.
7672

src/sidebarReference.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,8 @@
346346
"path": "/reference/rules",
347347
"routes": [
348348
{
349-
<<<<<<< HEAD
350-
"title": "Los componentes y Hooks deben ser puros",
351-
"path": "/reference/rules/components-and-hooks-must-be-pure"
352-
=======
353-
"title": "Components and Hooks must be pure",
349+
"title": "Los componentes y Hooks deben ser puros",
354350
"path": "/reference/rules/components-and-hooks-must-be-pure"
355-
>>>>>>> b12743c31af7f5cda2c25534f64281ff030b7205
356351
},
357352
{
358353
"title": "React llama a los components y Hooks",

0 commit comments

Comments
 (0)