createGate(config?: {defaultState?, domain?, name?})
#
Creates a Gate
to consume data from view, designed for vue 3.
If defaultState
is defined, Gate.state will be created with passed value
Arguments
config
(Object): Optional configuration object
defaultState?
: Optional default state for Gate.statedomain?
(Domain): Optional domain which will be used to create gate units (Gate.open event, Gate.state store and so on)name?
(string): Optional name which will be used as name of created react component
Returns