3 ms·
It looks like they're handling it with Reactive Record[1] and Synchromesh[2] > Reactive Record compiles your Active Record models so they are accessible to the
by mhw 10y ago
It looks like they're handling it with Reactive Record[1] and Synchromesh[2]
> Reactive Record compiles your Active Record models so they are accessible to the front-end and implements an API based on your models and their associations. Lazy loads just the data that is needed to render a component and is fully integrated with Reactrb and paired with Synchromesh to push database changes to all connected clients. ReactiveRecord and Synchromesh give you Relay + GraphQL like functionality with a fraction of the effort and complexity (the original idea for Reactive Record is credited to Volt and not Relay).
They're planning to support Synchromesh pushing updates to clients over ActionCable channels when the whole stack supports Rails 5. [3]
[1] http://ruby-hyperloop.io/tutorials/showcase/#using-reactrb-reactive-record http://ruby-hyperloop.io/tutorials/showcase/#using-reactrb-r...
[2] http://ruby-hyperloop.io/tutorials/showcase/#synchromesh http://ruby-hyperloop.io/tutorials/showcase/#synchromesh
[3] https://github.com/reactrb/synchromesh#transports https://github.com/reactrb/synchromesh#transports