What you’ll learn
-
How plugin
mount/2initializes plugin-owned state. -
How plugin
signal_routescontribute handlers to the agent. - How plugin actions update a plugin state slice.
How it works
The NotesPlugin owns the :notes state key and exposes two routed signals:
-
notes.add -
notes.clear
The LiveView sends these signals through AgentServer.call/2 and renders the
plugin state after each call.