utils.downloadPage - exclude header & sideBar

I'm using utils.downloadPage and am trying to exclude the header/sidebar has anyone found a way to do this?

Ah, looks like this is a good bug/request for me to file! Will keep you updated on a fix for this.

The best we can do at the moment is to just hide the components inside, but you still unfortunately see the header and sidebar sections (just sans components).

utils.downloadPage("users_dashboard", { componentsToExclude: ["container1", "navigation1", "image6", "navigation2"] })

had tried that solution as well hoping it would remove them if they're empty - unfortunately not.

updated to feature request. thanks @victoria !

As a quick workaround, if you run this query in Preview mode, it should exclude the header and sidebar!