Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 65830c5

Browse files
committed
make sure next_props is a hash
1 parent b24de9f commit 65830c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react/component.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def should_component_update?(next_props, next_state)
153153

154154
def component_will_update(next_props, next_state)
155155
State.set_state_context_to(self) do
156-
self.run_callback(:before_update, next_props, Hash.new(next_state))
156+
self.run_callback(:before_update, Hash.new(next_props), Hash.new(next_state))
157157
end
158158
rescue Exception => e
159159
self.class.process_exception(e, self)

0 commit comments

Comments
 (0)