toddler.lazy
load-components
macro
(load-components & bindings)
Macro for lazy loading modules and exposing components from loaded module. First argument is name of module, that is what you named module in shadow-cljs.edn.
Rest of arguments should be pairs of keywords that map to components inside of target module. I.E.
(lazy/load-components
"chartjs"
::Chart toddler.chart-js/Chart
::John toddler.dummy/john
::Doe toddler.dummy/doe)
load-components
macro
(load-components & bindings)
Macro for lazy loading modules and exposing components from loaded module. First argument is name of module, that is what you named module in shadow-cljs.edn.
Rest of arguments should be pairs of keywords that map to components inside of target module. I.E.
(lazy/load-components
"chartjs"
::Chart toddler.chart-js/Chart
::John toddler.dummy/john
::Doe toddler.dummy/doe)