Reuse the same ui objects on different tabs in shiny app
I would like to create a shiny app with tabs using a modular approach, but I would like some tab selections to show the same page/collection of uiobjects as each other. Importantly, I don’t want to create the same page/module/uiobjects twice and match the state of the iuobjects between each instance. I have a reprex below which currently creates the same module twice with the same id (I think all I’ve achieved here is bad coding practice!). Is there a way that mod_test_ui("test_1")
can be created once and displayed when either tab1_DROPDOWN
or tab2_DROPDOWN
is selected?