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

271
Visualizações
is any methods for refreshing data in table in react js?

As I'm trying to refresh the page by using window.location.reload() method the page is reloading but it is redirecting from current page to home page.I have searched more number of methods like setInterval() but when we add,delete and edit the record after clicking the submit button the record in the table is not visible.so as i'm new to this react js,anyone please help me to overcome from this issue

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

0

The correct approach maybe must be store the data of your table like a state.

If you're using hooks:

const [dataTable, setDataTable] = useState(null)

And after you add, edit or delete a record you should update your dataTable state with the new dataTable.

onDataTableChange = (data) => {
setDataTable(data) }

This going to update your state and re-render with the new data.

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