title: Get data from nested reactable of shiny dashboard with Reactable.getState
body: <p>I have a dashboard created with <code>shiny</code> and the <code>reactable</code>package. I would like to download the data shown in the table into an Excel file with <code>Reactable.getState</code> The problem is that I can only get the data of the inner tables if they were expanded.</p>
  <p>The following example shows this problem for the inner table of the first row.</p>
  <p>If you click <em>Get data</em>, it shows <em>NULL</em>.</p>
  <p>If you expand the first row and click <em>Get data</em>, it shows the data of the inner table.</p>
  <p>Is there a way to get the data of the inner table without expanding it?</p>
  <pre><code>library(shiny)
  library(reactable)
  library(jsonlite)
  
  data &lt;- as.data.frame(unique(MASS::Cars93[, 1]))  
  
  registerInputHandler(
    &quot;xx&quot;,
    function(data, ...){
      fromJSON(toJSON(data))
    },
    force = TRUE
  )
  
  ui &lt;- fluidPage(
    fluidRow(
      column(
        7,
        tags$button(
          &quot;Get data&quot;,
          onclick = '
            var state = Reactable.getState(&quot;cars1&quot;);
            Shiny.setInputValue(&quot;dat:xx&quot;, state.sortedData);
          '
        ),
        reactableOutput(&quot;cars&quot;)
      ),
      column(
        5,
        verbatimTextOutput(&quot;data&quot;)
      )
    )
  )
  
  server &lt;- function(input, output){
    output$cars &lt;- renderReactable({
      reactable(data, details = function(index){       
        part_data &lt;- MASS::Cars93[MASS::Cars93[, 1] == data[index, 1], 2:5]                       
        htmltools::div(style = &quot;padding: 1rem&quot;,
                       reactable(part_data, outlined = TRUE, elementId = paste0('cars', index))
        )},  filterable = TRUE)
    })
  
    output$data &lt;- renderPrint({
      input$dat
    })
  }
  
  shinyApp(ui, server)
  </code></pre>