{:uriI"file:///Users/joel/src/revelreact_rails/test/dummy/app/assets/javascripts/components/Test.js.cjsx?type=application/javascript&pipeline=self&id=91de3e49a2e4edff1143a01f20ee79fc6930aae8fc8a400980e7a81cbb2a8b84:ET:load_pathI"G/Users/joel/src/revelreact_rails/test/dummy/app/assets/javascripts;F: filenameI"_/Users/joel/src/revelreact_rails/test/dummy/app/assets/javascripts/components/Test.js.cjsx;T: nameI"components/Test;T:logical_pathI"components/Test.self.js;T:content_typeI"application/javascript;T: sourceI" (function() { var LazyConversation, LazyMessage; Rev.pullInto(this)('Input', 'Textarea', 'Button'); LazyMessage = Rev.appComponent('LazyMessage', { mixins: [Rev.Mixins.BackboneStore], render: function() { return this.store.prepare({ collection: "messages", model: this.props.id, onWait: (function(_this) { return function() { return React.createElement("li", null, "Loading message..."); }; })(this), onSuccess: (function(_this) { return function(message) { return _this.store.prepare({ collection: "users", model: message.get("user_id"), onWait: function() { return React.createElement("li", null, "Message is loaded. Loading user..."); }, onSuccess: function(user) { return React.createElement("li", null, (user.get('name')) + " says: \"" + (message.get('body')) + "\""); }, onError: function() { return React.createElement("li", null, "FAILED."); } }); }; })(this) }); } }); LazyConversation = Rev.appComponent('LazyConversation', { mixins: [Rev.Mixins.BackboneStore], render: function() { return this.store.prepare({ collection: "conversations", model: this.props.id, onWait: (function(_this) { return function() { return React.createElement("div", null, "LOADING CONVERSATION..."); }; })(this), onSuccess: (function(_this) { return function(conversation) { return React.createElement("ul", null, conversation.get("message_ids").map(function(id) { return React.createElement(LazyMessage, { "key": id, "id": id }); })); }; })(this) }); } }); Rev.appComponent('Test', { mixins: [App.Mixins.Test, Rev.Mixins.BackboneStore], render: function() { return React.createElement("div", null, React.createElement("div", null, this.props.propFromTestMixin), React.createElement(LazyConversation, { "id": 1. }), React.createElement("button", { "onClick": this.onClickRerender }, "Re-render.")); }, onClickRerender: function() { return this.forceUpdate(); } }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"hprocessors:type=application/javascript&file_type=application/javascript&engines=.cjsx&pipeline=self;TTI"mfile-digest:///Users/joel/src/revelreact_rails/test/dummy/app/assets/javascripts/components/Test.js.cjsx;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%=^[cuq_\ }p`o: lengthi :integrityI"Xni:///sha-256;8z2ZXpaRW4pjdX-acbmO3ufcy19c8N_GDeB9qXC7YG8?ct=application/javascript;T:dependencies_digest"%l_H QJVVno:idI"E91de3e49a2e4edff1143a01f20ee79fc6930aae8fc8a400980e7a81cbb2a8b84;F: mtimel++1U