hyperstack-org/hyperstack

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

Open

#417 ouverte le 16 juil. 2021

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (43 forks)batch import
buggood first issue

Métriques du dépôt

Stars
 (531 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur