Implements app-level hooks by leveraging the AppHook protocol.
Such hooks conveniently define everything host related (for any particular host extension point) in one place, where host can define:
Unique identifier of the hook (keyword) - extension writer must specify it when writing extension config
Hook-in method - which specifies what need to be done when extension is turned on. Note that pluto expects hosts written in functional manner, so while there is no particular requirement on what this method should return, it's expected to return data description of necessary changes, for example re-frame effects.
Unhook method - same as above, only specifying what needs to be done when extension is turned-off
Implements app-level hooks by leveraging the
AppHook
protocol. Such hooks conveniently define everything host related (for any particular host extension point) in one place, where host can define:re-frame
effects.