Skip to content

Commit 80061da

Browse files
committed
removes need for start reactive
1 parent e160038 commit 80061da

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

R/app_server.R

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ app_server <- function(input, output, session) {
1010
shiny::reactive(input$params_file)
1111
)
1212

13-
# we could probably drop the need for start now, kept for historical reasons
14-
start <- shiny::reactive({
15-
shiny::req(length(params) > 0)
16-
shiny::req(params$dataset)
17-
shiny::req(params$scenario)
18-
1
19-
})
20-
2113
# load all data
2214
rates_data <- shiny::reactive({
2315
get_rates_data()
@@ -46,8 +38,6 @@ app_server <- function(input, output, session) {
4638

4739
# load all other modules once the home module has finished loading
4840
init <- shiny::observe({
49-
shiny::req(start() > 0)
50-
5141
available_strategies <- shiny::reactive({
5242
# nolint start: object_usage_linter
5343
dataset <- shiny::req(params$dataset)
@@ -130,11 +120,9 @@ app_server <- function(input, output, session) {
130120
}
131121

132122
init$destroy()
133-
}) |>
134-
shiny::bindEvent(start())
123+
})
135124

136125
shiny::observe({
137-
shiny::req(start() > 0)
138126
shiny::req(params$dataset)
139127
shiny::req(params$scenario)
140128

0 commit comments

Comments
 (0)