Hassle-free shared state between parent and children.
Helps to prevent "prop-drilling".
The parent needs to pass context=balzeui_context
to the child
in Template.contentBlock
, while
children need to use state from this context, instead of
creating a new ReactiveDict.
Children can then read/write to the state.
- Source:
Methods
(static) createContext()
You can use this to manually create and share context
but usually you just need the blazeui_context
helper.
- Source:
(static) useFromContext()
- Source: