According to the documentation, the view function declared in the PluginSpec interface is called when the plugin’s state is associated with an editor view.
I wonder what “is associated” means in this context.
The plugin state is orthogonal to the view part.
The update method will be called when the plugin’s state is updated ( so you can react to state changes and do things in the DOM for ex. ) and you can also send transactions from the update method. You can communicate back and forth, I’d also add that this is rarely needed, most things people want to do are achievable with a Decoration.