hyperstack-org / hyperstack-org/hyperstack

a Native::Object in component params can't be retrieved

Đang mở
#417 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug good first issue
Ngôn ngữ chính
JavaScript
Star
538
Fork
41
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

A Native::Object is a BasicObject and it doesn't respond to "tap".
It defines method_missing so `Native::Object.new.tap` returns nil

At [hyperstack/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb:113](https://github.com/hyperstack-org/hyperstack/blob/075162ff6cd9ecc8572c3947b3e55c06f669f789/ruby/hyper-component/lib/hyperstack/internal/component/props_wrapper.rb#L113) .tap returns nil so fetch_from_cache returns nil instead of the Native::Object.

I suggest to rewrite fetch_from_cache without using tap.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.