Sha256: 7a7ab01882b90ecfbcdc58152e84065f9a9ed56e965b3f22cd7df4e58c82cb33
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
module LucidApp module API def self.included(base) base.instance_exec do def render(&block) %x{ self.react_component.prototype.render = function() { Opal.React.render_buffer.push([]); Opal.React.active_components.push(this); Opal.React.active_redux_components.push(this.__ruby_instance); #{`this.__ruby_instance`.instance_exec(&block)}; Opal.React.active_redux_components.pop(); Opal.React.active_components.pop(); var children = Opal.React.render_buffer.pop(); return React.createElement(LucidApplicationContext.Provider, { value: this.state.isomorfeus_store_state }, children); } } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isomorfeus-react-16.5.1 | lib/lucid_app/api.rb |