Hi, what would be the right way to update the StreamResource on button c

Hi, what would be the right way to update the StreamResource on button click?

FileDownloadWrapper buttonWrapper = new FileDownloadWrapper(exportExcel());

this only seems to call my method, which dynamically generates StreamResource once on rendering page and not on button click. Thanks!

There’s no way.