From c5a4c55c4175adaf3b067e7e517b2b935062626f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:46:18 +0100 Subject: [PATCH] fix: module tab reactivity is only triggered after data is pulled --- R/module_nested_tabs.R | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/R/module_nested_tabs.R b/R/module_nested_tabs.R index c487ccad16..c0718a14bb 100644 --- a/R/module_nested_tabs.R +++ b/R/module_nested_tabs.R @@ -214,7 +214,11 @@ srv_teal_module.teal_modules <- function(id, datasets = datasets, slices_global = slices_global, reporter = reporter, - is_active = reactive(is_active() && input$active_tab == module_id) + is_active = reactive( + is_active() && + input$active_tab == module_id && + identical(data_load_status(), "ok") + ) ) }, simplify = FALSE