Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.8K
Views
"Este límite de Suspenso recibió una actualización antes de que terminara de hidratarse". Error al usar suspenso e importación dinámica en Nextjs

Estoy tratando de cargar de forma diferida una lista de datos con suspenso e importación dinámica en Nextjs. Pero obteniendo el siguiente error:

 Error: This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition.

Intenté usar startTransition() pero no pude entender cómo usarlo.

Lista de datos.tsx:

 import React, { useState } from "react"; interface Props { data: any[]; } const DataList = ({ data }: Props) => { return ( <div> {data && data.map((item) => { return ( <div key={item._id}> {item.title} </div> ); })} </div> ); }; export default DataList;

DataPage.tsx

 import React, { Suspense, useEffect, useState } from "react"; import dynamic from "next/dynamic"; const DataList = dynamic(() => import("./DataList"), { suspense: true, }); interface Props {} const Projects = ({}: Props) => { const [data,setData] = useState<any[]>(); useEffect( () => { fetch('https://jsonplaceholder.typicode.com/posts') .then(response => response.json()) .then(json => setData(json)) } , []) return ( <> <Suspense fallback={<p>LOADING</p>}> <DataList data={data} /> </Suspense> </> ); }; export default DataPage;
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!