Open
Description
Describe the bug and Reproduce
If the file loads the first time, the file has a duplicate header, it calls the onFileLoaded function, but the second load is the same file, it will not call the onFileLoaded function anymore.
Expected behavior
2nd time it still has to run into function onFileLoaded
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
- Browser Chrome
- Version "react-csv-reader": "^3.0.6"
CSV file: https://drive.google.com/file/d/1QfDRRAzsHZ6P4IiXNq-pUNba2KkOQd3u/view?usp=sharing
My code:
const papaParseOptions = {
header: true,
dynamicTyping: true,
skipEmptyLines: true,
transformHeader(header) {
return header
}
};
<CSVReader
onFileLoaded={handleForce}
parserOptions={papaParseOptions}
/>
const handleForce = (data, fileInfo) => {
console.log('data', data)
};
Metadata
Metadata
Assignees
Labels
No labels