You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/blog/2022/06/15/react-labs-what-we-have-been-working-on-june-2022.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To set expectations, this is not a roadmap with clear timelines. Many of these p
20
20
21
21
## Server Components {/*server-components*/}
22
22
23
-
We announced an [experimental demo of React Server Components](https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components) (RSC) in December 2020. Since then we’ve been finishing up its dependencies in React 18, and working on changes inspired by experimental feedback.
23
+
We announced an [experimental demo of React Server Components](https://legacy.reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html) (RSC) in December 2020. Since then we’ve been finishing up its dependencies in React 18, and working on changes inspired by experimental feedback.
24
24
25
25
In particular, we’re abandoning the idea of having forked I/O libraries (eg react-fetch), and instead adopting an async/await model for better compatibility. This doesn’t technically block RSC’s release because you can also use routers for data fetching. Another change is that we’re also moving away from the file extension approach in favor of [annotating boundaries](https://github.com/reactjs/rfcs/pull/189#issuecomment-1116482278).
Copy file name to clipboardExpand all lines: src/content/reference/react/Suspense.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2513,7 +2513,7 @@ Sin embargo, imagina ahora que estás navegando entre dos perfiles de usuario di
2513
2513
2514
2514
---
2515
2515
2516
-
### Proporcionar un *fallback* para los errores del servidor y el contenido exclusivo del servidor {/*providing-a-fallback-for-server-errors-and-server-only-content*/}
2516
+
### Proporcionar un *fallback* para los errores del servidor y el contenido exclusivo del servidor {/*providing-a-fallback-for-server-errors-and-client-only-content*/}
2517
2517
2518
2518
Si utilizas una de las [APIs de renderizado en el servidor con *streaming*](/reference/react-dom/server) (o un *framework* que depende de ellas), React también utilizará tus barreras de `<Suspense>` para manejar errores en el servidor. Si un componente lanza un error en el servidor, React no abortará el renderizado en el servidor. Lo que hará será encontrar el componente `<Suspense>` más cercano encima de este e incluirá su *fallback* (un *spinner*, por ejemplo) dentro del HTML generado en el servidor. El usuario verá un *spinner* en lugar de un error.
Copy file name to clipboardExpand all lines: src/content/reference/react/useInsertionEffect.md
+6-7
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ title: useInsertionEffect
10
10
11
11
<Intro>
12
12
13
-
`useInsertionEffect`es una versión de [`useEffect`](/reference/react/useEffect) que se dispara antes de cualquier mutación del DOM.
13
+
`useInsertionEffect`permite insertar elementos en el DOM antes de que se disparen los efectos de diseño.
14
14
15
15
```js
16
16
useInsertionEffect(setup, dependencies?)
@@ -52,12 +52,11 @@ function useCSS(rule) {
52
52
53
53
`useInsertionEffect` devuelve `undefined`.
54
54
55
-
#### Advertencias {/*caveats*/}
56
-
57
-
* Los Efectos que sólo se ejecutan en el cliente. No se ejecutan durante el renderizado en el servidor.
58
-
* No puedes actualizar el estado dentro de `useInsertionEffect`.
59
-
* En el tiempo en que `useInsertionEffect` se ejecuta, las referencias aún no han sido acopladas y el DOM todavía no ha sido actualizado.
60
-
55
+
* Effects only run on the client. They don't run during server rendering.
56
+
* You can't update state from inside `useInsertionEffect`.
57
+
* By the time `useInsertionEffect` runs, refs are not attached yet.
58
+
* `useInsertionEffect` may run either before or after the DOM has been updated. You shouldn't rely on the DOM being updated at any particular time.
59
+
* Unlike other types of Effects, which fire cleanup for every Effect and then setup for every Effect, `useInsertionEffect` will fire both cleanup and setup one component at a time. This results in an "interleaving" of the cleanup and setup functions.
0 commit comments