~/talk

Sharing App State Between Shiny modules

Talkat ShinyConf 2023 · 2023-03-15..03-17· [frontend-architecture]
links:none on file
slides:none on file

Compares the usual functional pattern of returning reactives between modules with an R6 state manager pattern that passes manager objects (examples: data, user, DB managers) into modules. Implements a variables manager with X/Y fields, a set_variables method and a triggering_plot method to reduce unnecessary reactivity. Provides an MS housing example and production-style repos; approach lets tests target class logic, scales better than a single global reactive store, and is already applied in larger client apps (code on GitHub).

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:30Why modules and this talk
  3. 2:15Agenda and module basics
  4. 5:52Modules recap and benefits
  5. 8:44Module independence and reuse
  6. 10:49Standard functional approach
  7. 15:45Object-oriented approach with managers
  8. 18:15State manager R6 class
  9. 21:30Variable selection module
  10. 24:41Managers vs global reactive values
  11. 25:44Benefits at scale and testing
  12. 26:50Common manager types
  13. 27:54Shiny decisions examples
  14. 29:24Resources and conclusion
  15. 30:06Q&A on module size
  16. 31:50Q&A on module server syntax
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.