Skip to content

Commit

Permalink
fix: module tab reactivity is only triggered after data is pulled
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 9, 2024
1 parent fb986cb commit c5a4c55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/module_nested_tabs.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5a4c55

Please sign in to comment.