Configuration
Avo version
4.0.0.beta.6
Rails version
8.1.3
Ruby version
4.0.1
License type
Are you using Avo monkey patches, overriding views or view components?
Description
Calling download in Avo::BaseAction#handle does not reload the records after the file has been downloading. If the action created new records, they will not show up until interactively reloading the page using the browser reload butten.
Adding reload after download correctly reloads but does not trigger the download anymore.
Additional context
This happens in a standalone action, that creates new records of a recourse.
def handle(query:, fields:, current_user:, resource:, **args)
...
statement = Statements::GenerateMonthlyStatement.call(statement_data: statement_data)
download statement.file.download, statement.file.filename
...
end
Screenshots or screen recordings

Configuration
Avo version
4.0.0.beta.6
Rails version
8.1.3
Ruby version
4.0.1
License type
Are you using Avo monkey patches, overriding views or view components?
Description
Calling
downloadin Avo::BaseAction#handle does not reload the records after the file has been downloading. If the action created new records, they will not show up until interactively reloading the page using the browser reload butten.Adding
reloadafterdownloadcorrectly reloads but does not trigger the download anymore.Additional context
This happens in a standalone action, that creates new records of a recourse.
Screenshots or screen recordings