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

186
Visualizações
How to get the next() function to fire a second time with identical data?

I'm calling RxJs's next() function and passing it an object which is identical to the object which was just passed, but it's not firing for a second time. I was wondering if there's a way to force next() to fire even if the data it's passed is the same?

Is there another function I should be using?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Calling .next with the same data works just fine.

Code

const subj = new Subject<number>();
subj.subscribe(console.log);
subj.next(1);
subj.next(1);

Output

1
1
about 4 years ago · Juan Pablo Isaza Relatório
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