useExport with arrays in schema
I have resources that have array fields, which I am spreading to fields like
arrayItem.0.name, arrayItem.1.name
and this works, however the CSV export does not aggregate the headers and only appears to use the headers from the first row. So, if there's a subsequent row that has more items in the array than the initial row, they do not appear in the CSV. Is there a workaround for this?2 Replies
Hi @geoffatsource 👋,
useExport hook uses package "export-to-csv". You can check out the package options ⚡️
https://github.com/alexcaza/export-to-csv
GitHub
GitHub - alexcaza/export-to-csv: Export a JS collection to CSV; wri...
Export a JS collection to CSV; written in TypeScript. - GitHub - alexcaza/export-to-csv: Export a JS collection to CSV; written in TypeScript.
narrow-beige•2y ago
nice! 🙂