canjs / can-connect

Model layer utilities for every JavaScript framework! Assemble real-time, high performance, restful data connections.
https://canjs.com/doc/can-connect.html
MIT License
29 stars 16 forks source link

improve flexibility of can-connect behavior ordering #335

Open nlundquist opened 7 years ago

nlundquist commented 7 years ago

We've had several ideas on how to improve can-connect behavior ordering:

The goal of any of these improvements would be to allow behaviors:

nlundquist commented 7 years ago

To assist in this work I created a graph attempting to order the behaviors into stages and show what methods behaviors override of the connection. The graph is ordered from top to bottom with the edge labels showing the methods overridden on the connection by the lower behaviour.

I've attached a .gif export of the graph and a zip of the original OmniGraffle document. behaviors relayout behaviors relayout.zip

nlundquist commented 7 years ago

Whatever solution we implement should allow modification of existing connection types like #291 describes. This will allow "higher order" behaviors.