Closed janherich closed 6 years ago
How is this different from event?
@jeluard Events are just keywords (:events
key in capacities is set of keywords), while functions are mapping fn-symbol->fn-definition
.
Furthermore, the semantics is completely different, events can be referred in the components props of certain type (event handlers like :on-change
, on-click
etc.), where their dispatch is constructed with event arguments, functions can't and they are never called in the extensions, the only possibility is to pass them (function reference) back to the AppHook
via prop.
Events of type :set-in
are also validated against permissions object.
Allow host defined functions to be specified as property type in hook.