Export action returns incorrect records

When attempting to export records from the view page of one of my resources I'm getting various results when running the export action multiple times. For example when I press the button a few times after each other (each time waiting for the export to finish before starting a new one). The results vary in amount of records, the notification correctly shows X amount of records, but the records in the export are sometimes incorrect and sometimes not.
ExportAction::make()
->exporter(ResultExporter::class)
->modifyQueryUsing(function (Builder $query) {
$query->whereHas('screen.report', fn (Builder $query) => $query->where('id', $this->getRecord()->id));
}),
ExportAction::make()
->exporter(ResultExporter::class)
->modifyQueryUsing(function (Builder $query) {
$query->whereHas('screen.report', fn (Builder $query) => $query->where('id', $this->getRecord()->id));
}),
When attempting the same on V4 Beta I appear to have correct exports all the time. Are there any differences between the two that I'm missing?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?