hyperstack-org / hyperstack-org/hyperstack

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

オープン
#417 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug good first issue
主要言語
JavaScript
スター
538
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。