hyperstack-org / hyperstack-org/hyperstack

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

Aperta
#417 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
bug good first issue
Lingua principale
JavaScript
Stelle
538
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.