Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Can't preview progress bar properly #101

Open
RexusWolf opened this issue Feb 8, 2023 · 1 comment
Open

Can't preview progress bar properly #101

RexusWolf opened this issue Feb 8, 2023 · 1 comment

Comments

@RexusWolf
Copy link

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

@unframework
Copy link
Collaborator

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants