Download-Button reloads app and results / output is gone

Hi there,
I use the new download button (way better then use some custom functions) and after using it to download e.g. data the app reloads and the output is gone. Is there any way to keep the generated output (not reload the app) and use the download button? Maybe some combination with forms?

Thx

Hi, @jpigla!

Could you please share the code snippet, and explain a little more in detail what you want to achieve?

In general, the logic of the download button is the same as for other widgets, that is, it leads to the app script rerun upon interaction.