I'm building a Shiny app that makes an API call that's pretty slow in returning data. I'm using a submit button in the app. The following code will prevent the "Download data" button from appearing until after the user hits submit:
conditionalPanel( condition = "input.submit1 == 1", downloadButton("downloadData1", "Download Data") )
However, because of the long wait for actual data to be returned, I'd prefer the download button not to appear until after my reactive data set mydata() is generated. Any suggestions on how I should do that? Thank you.