Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
364 stars 61 forks source link

CSVReader state updated after file load, even if noProgressBar is true #88

Closed stefee closed 3 years ago

stefee commented 3 years ago

We encountered this error in our project:

Screenshot 2021-06-08 at 1 28 46 pm

We tracked down the error to the user closing a file loading modal too quickly after loading the file, because the CSVReader was updating internal state using setTimeout.

We expected that setting noProgressBar would resolve this bug since the problem was progress bar state updating after the component was unmounted.

sophiabarclay commented 2 years ago

I see the noProgressBar bar has been removed in recent versions. Is there a workaround for this warning on the latest version?

callum-fairbairn-cazoo commented 2 years ago

Is there any update on this?