In the minimum application example below the inserted ui appears with fade oppacity (css class .recalculating)
library(shiny)
# Define UI
ui <- fluidPage(
# this is where the UI will be inserted
uiOutput("filters"),
actionButton("add_filter", "Add")
)
# Define server logic required to insert UI
server <- function(input, output) {
# when we click the button the UI is inserted
observeEvent(input$add_filter,{
insertUI(
selector = "#filters",
ui = div(
selectInput("test", "test_label", choices = c(1,2))
)
)
})
}
# Run the application
shinyApp(ui = ui, server = server)
Why isn't is the normal display? How could it work? It probably means that something is recalculating and this isn't a good thing for the performance as well...

