Rev.pullInto(this) 'Input', 'Textarea', 'Button'
LazyMessage = Rev.appComponent 'LazyMessage',
mixins: [Rev.Mixins.BackboneStore]
render: ->
@store.prepare
collection: "messages"
model: @props.id
onWait: =>
Loading message...
onSuccess: (message) => @store.prepare
collection: "users"
model: message.get "user_id"
onWait: => Message is loaded. Loading user...
onSuccess: (user) => {"#{user.get 'name'} says: \"#{message.get 'body'}\""}
onError: => FAILED.
LazyConversation = Rev.appComponent 'LazyConversation',
mixins: [Rev.Mixins.BackboneStore]
render: ->
@store.prepare
collection: "conversations"
model: @props.id
onWait: => LOADING CONVERSATION...
onSuccess: (conversation) =>
{conversation.get("message_ids").map (id) ->
}
Rev.appComponent 'Test',
mixins: [App.Mixins.Test, Rev.Mixins.BackboneStore]
render: ->
{@props.propFromTestMixin}
onClickRerender: ->
@forceUpdate()