react-csv-importer
react-csv-importer copied to clipboard
Can't preview progress bar properly
Hi!
Is there any way of doing the requests with the processed rows while the rest of the file is being processed? I want to obtain a similar effect to this progress bar. Mine just gets completed instantly and then it takes some time to finish the processChunk function.
https://github.com/beamworks/react-csv-importer/raw/59f967c13bbbd20eb2a663538797dd718f9bc57e/package-core/react-csv-importer-demo-20200915.gif
I'd check the return value of your dataHandler function (processChunk is deprecated). If you return a promise that resolves when you finish processing the rows, then the importer progress bar will wait for that to complete.