CSVButton should download raw data every time it is clicked. Right now it only triggers downloading on every other click. This is due to the "ready" and "!ready" toggling. The csv file is only downloaded when the CSVDownload component is rendered (see csv-react npm documentation) so every other time this component does not render and the data doesn't download on the click.
CSVButton should download raw data every time it is clicked. Right now it only triggers downloading on every other click. This is due to the "ready" and "!ready" toggling. The csv file is only downloaded when the CSVDownload component is rendered (see csv-react npm documentation) so every other time this component does not render and the data doesn't download on the click.