Apologies if this is a bit fuzzy.
I have my own FRP based library for building my application models. It has a concept of components which have state which is changed via Streams.
This encapsulates the behaviour of the UI minus the actual views. I am starting to integrate this with Polymer 1.0 and would like some guidance as the the best approach.
Some things are easy (like binding changes to fields in my models to notifyPath).
For updates I'm considering having a single method with an Observe annotation like
@Observe('*')
void myHandler(Map changeRecord) => ... delegate to my adapters
Is it likely to be inefficient to listen to all (*) events like this? Is there a lower level way to register more specific paths that avoids the need for the Observe annotation?
Is using the PolymerRegister annotation the best way to register the components in this case? Is there lower level API to do it instead?