react-csv-importer icon indicating copy to clipboard operation
react-csv-importer copied to clipboard

Can't preview progress bar properly

Open RexusWolf opened this issue 2 years ago • 1 comments

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

RexusWolf avatar Feb 08 '23 15:02 RexusWolf

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.

unframework avatar Feb 23 '23 20:02 unframework