Skip to content

Commit 88a0e31

Browse files
committed
removed assignment to ele local var - fixed
1 parent 7e3d774 commit 88a0e31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ruby/hyper-component/lib/hyperstack/internal/component/react_wrapper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ def self.create_element(type, *args, &block)
201201
}
202202
}
203203
end
204-
Hyperstack::Component::Element.new(
204+
# assign to ele so that the ref callback can use it
205+
ele = Hyperstack::Component::Element.new(
205206
`React.createElement.apply(null, #{params})`, type, properties, block
206207
)
207208
end

0 commit comments

Comments
 (0)