hyperstack-org/hyperstack
Auf GitHub ansehena Native::Object in component params can't be retrieved
Open
#417 geöffnet am 16. Juli 2021
buggood first issue
Repository-Metriken
- Stars
- (531 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.