@@ -123,31 +123,31 @@ ActionCableController.propTypes = {
123123 onRejected : PropTypes . func ,
124124 children : PropTypes . any
125125} ;
126+ var Component = createReactClass ( {
127+ displayName : "Component" ,
128+ render : function render ( ) {
129+ var _this = this ;
130+
131+ return React . createElement ( Consumer , null , function ( _ref ) {
132+ var cable = _ref . cable ;
133+ return React . createElement ( ActionCableController , _objectSpread ( {
134+ cable : cable
135+ } , _this . props , {
136+ ref : _this . props . forwardedRef
137+ } ) , _this . props . children || null ) ;
138+ } ) ;
139+ }
140+ } ) ;
141+ Component . displayName = "ActionCableConsumer" ;
142+ Component . propTypes = {
143+ onReceived : PropTypes . func ,
144+ onInitialized : PropTypes . func ,
145+ onConnected : PropTypes . func ,
146+ onDisconnected : PropTypes . func ,
147+ onRejected : PropTypes . func ,
148+ children : PropTypes . any
149+ } ;
126150var ActionCableConsumer = React . forwardRef ( function ( props , ref ) {
127- var Component = createReactClass ( {
128- displayName : "Component" ,
129- render : function render ( ) {
130- var _this = this ;
131-
132- return React . createElement ( Consumer , null , function ( _ref ) {
133- var cable = _ref . cable ;
134- return React . createElement ( ActionCableController , _objectSpread ( {
135- cable : cable
136- } , _this . props , {
137- ref : _this . props . forwardedRef
138- } ) , _this . props . children || null ) ;
139- } ) ;
140- }
141- } ) ;
142- Component . displayName = "ActionCableConsumer" ;
143- Component . propTypes = {
144- onReceived : PropTypes . func ,
145- onInitialized : PropTypes . func ,
146- onConnected : PropTypes . func ,
147- onDisconnected : PropTypes . func ,
148- onRejected : PropTypes . func ,
149- children : PropTypes . any
150- } ;
151151 return React . createElement ( Component , _objectSpread ( { } , props , {
152152 forwardedRef : ref
153153 } ) , props . children || null ) ;
0 commit comments