In the same Shiny App, I have two modules, which have a similar architecture with an observeEvent
. Both observeEvent
s update the input fields. In one of the modules this action works just fine. In the other one it does not work for some reason.
- Both modules have the
ns("id")
for the inputs. update*Inputs
have the session informationobserveEvent
s are triggered in both cases- There are no errors on the server or browser side, which indicates anything.
- There are some submodules. If there are some actions in the subsubmodule, then the module update*Input works once.
I think this must be a weird bug but is there any way to even investigate it?
module_ui = function(id){
ns = NS(id)
...
textInput(ns("textid"), ...)
...
}
module_server = function(id){
moduleServer(id,
function(input, output, session){
...
observeEvent(reac(), {
print("trigger indicator")
updateTextInput(session, "textid", value = reac())
}
...
}
}