You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/tutorial/server-side-processing.rmd
+9-13Lines changed: 9 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,11 @@ Rendering a `reactable` with a lot of data can be inefficient. The initial loadi
11
11
12
12
A more efficient approach is to render only the data that is needed to be displayed.
13
13
14
-
`reactable_extras_ui()` and `reactalbe_extras_server()` is a wrapper for `reactable::reactableOutput()` and `reactable::renderReactable({reactable(...)})`.
15
-
It renders only a subset of a large data in the server memory. This almost instantly renders the desired page and keeps the amount of memory used in the browser minimal.
14
+
`reactable_extras_ui()` and `reactalbe_extras_server()` is a wrapper for `reactable::reactableOutput()` and `reactable::renderReactable({reactable(...)})`. It renders only a subset of a large data in the server memory. This almost instantly renders the desired page and keeps the amount of memory used in the browser minimal.
16
15
17
16
Consider this example data:
18
17
19
-
```r
18
+
```r
20
19
library(shiny)
21
20
library(reactable)
22
21
library(reactable.extras)
@@ -39,7 +38,7 @@ mtcars_ultra <- purrr::map(
39
38
40
39
And compare the difference in initial load time and amount of memory used in the browser when loading all the data at once vs loading only the data needed for the page.
41
40
42
-
```r
41
+
```r
43
42
# All of the data rendered all at once
44
43
shinyApp(
45
44
reactableOutput("test"),
@@ -74,19 +73,15 @@ shinyApp(
74
73
)
75
74
}
76
75
)
77
-
78
76
```
79
77
80
-
Server-Side Processing | Rendering All Data At Once
0 commit comments