Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

163
Vistas
Does Angular NavigationBehaviorOptions state paramter have a maximum size?

So i have this app where I'm getting data from my server and I want to display the result in a separate route. I tried using this line of code to send the data

.subscribe((result) => {
    console.log(result)
    this.router.navigate(['/results'], { state: { data: result } });
  });

The result here is an array of objects. The interesting thing is that when I use my small test object, which is an array of 3 objects, it works flawlessly. But when I try using a real result, which has about 21000 objects, I get an error. The only difference is the size of the result. I haven't found anything in the docs about a maximum size, so I was hoping somebody would be able to help me out

Edit:

The error message is (running on the ng serve dev server):

ERROR Error: Uncaught (in promise): [Exception... "Illegal value"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: http://localhost:4200/vendor.js :: pushState :: line 766

After that I get a very long stack trace.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda