@@ -116,7 +116,7 @@ def component_will_receive_props(next_props)
116116 # useful within the react.rb environment for now we are just using it to
117117 # clear processed_params
118118 State . set_state_context_to ( self ) do
119- self . run_callback ( :before_receive_props , Hash . new ( next_props ) )
119+ self . run_callback ( :before_receive_props , next_props )
120120 end
121121 rescue Exception => e
122122 self . class . process_exception ( e , self )
@@ -129,9 +129,8 @@ def props_changed?(next_props)
129129
130130 def should_component_update? ( next_props , next_state )
131131 State . set_state_context_to ( self ) do
132- next_props = Hash . new ( next_props )
133132 if self . respond_to? ( :needs_update? )
134- !!self . needs_update? ( next_props , Hash . new ( next_state ) )
133+ !!self . needs_update? ( next_props , next_state )
135134 elsif false # switch to true to force updates per standard react
136135 true
137136 elsif props_changed? next_props
@@ -150,15 +149,15 @@ def should_component_update?(next_props, next_state)
150149
151150 def component_will_update ( next_props , next_state )
152151 State . set_state_context_to ( self ) do
153- self . run_callback ( :before_update , Hash . new ( next_props ) , Hash . new ( next_state ) )
152+ self . run_callback ( :before_update , next_props , next_state )
154153 end
155154 rescue Exception => e
156155 self . class . process_exception ( e , self )
157156 end
158157
159158 def component_did_update ( prev_props , prev_state )
160159 State . set_state_context_to ( self ) do
161- self . run_callback ( :after_update , Hash . new ( prev_props ) , Hash . new ( prev_state ) )
160+ self . run_callback ( :after_update , prev_props , prev_state )
162161 State . update_states_to_observe
163162 end
164163 rescue Exception => e
0 commit comments