This repository was archived by the owner on Oct 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,20 +70,20 @@ def component_did_mount
70
70
def component_will_receive_props ( next_props )
71
71
# need to rethink how this works in opal-react, or if its actually that useful within the react.rb environment
72
72
# for now we are just using it to clear processed_params
73
- React ::State . set_state_context_to ( self ) { self . run_callback ( :before_receive_props , Hash . new ( next_props ) ) }
73
+ React ::State . set_state_context_to ( self ) { self . run_callback ( :before_receive_props , next_props ) }
74
74
rescue Exception => e
75
75
self . class . process_exception ( e , self )
76
76
end
77
77
78
78
def component_will_update ( next_props , next_state )
79
- React ::State . set_state_context_to ( self ) { self . run_callback ( :before_update , Hash . new ( next_props ) , Hash . new ( next_state ) ) }
79
+ React ::State . set_state_context_to ( self ) { self . run_callback ( :before_update , next_props , next_state ) }
80
80
rescue Exception => e
81
81
self . class . process_exception ( e , self )
82
82
end
83
83
84
84
def component_did_update ( prev_props , prev_state )
85
85
React ::State . set_state_context_to ( self ) do
86
- self . run_callback ( :after_update , Hash . new ( prev_props ) , Hash . new ( prev_state ) )
86
+ self . run_callback ( :after_update , prev_props , prev_state )
87
87
React ::State . update_states_to_observe
88
88
end
89
89
rescue Exception => e
You can’t perform that action at this time.
0 commit comments