hyperstack-org/hyperstack

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

Open

#417 创建于 2021年7月16日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (531 star) (43 fork)batch import
buggood first issue

描述

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 .tap returns nil so fetch_from_cache returns nil instead of the Native::Object.

I suggest to rewrite fetch_from_cache without using tap.

贡献者指南