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

305
Visualizações
Table content doesn't change on pagination (not because of keys)

I'm working on a Table component, @blueprintjs/table was an inspiration, it works perfectly if a class is wrapping the Table component, but when I'm using pagination, the content stops changing when a function is a wrapper instead. Here's a link to the code that replicates the problem I'm talking about. I added console.logs to show that items visible by cellRenderer is different than items visible on the component root level: https://codesandbox.io/s/beautiful-water-7hgjq

I don't think it's an issue with keys, and the pages do change properly. The exact point of failure that I found is TableRenderer component, because if columnArray is initialized only once, it works only for classes, but if I recreate the array on every children change, it starts working for functions as well. So I'm guessing it has something to do with cellRenderer reference.

What am I missing? Are scopes for class components handled differently in React, or maybe in JavaScript itself?

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