reactive future_map_dfr ?

I haven't tried future's in my work, but I can understand the issue if its something like the future function lazily evaluates its expression, and then this is happening in another context which shiny considers out of the reactive scope. My instincts are to simply make the value local in the expression that calls the future.
maybe

 sock_sim <- eventReactive(input$run_sim, {
    show_modal_spinner()  
    on.exit(remove_modal_spinner())
    set.seed(input$seed)  
    local_size <-  input$size #  <<---
     local_mu <- input$mu     #  <<--
    future_map_dfr(1:input$n_sims,
                   ~simulate_socks(n_picked = 11,
                                   mu = local_mu, #  <<---
                                   size = local_size,   #  <<--
1 Like