Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

166
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda