Skip to content

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

Open

Description

@lionelchauvin

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.

Activity

  1. added
    bug
    good first issue
    on Aug 3, 2021
  2. lionelchauvin commented on Aug 4, 2021

    @lionelchauvin
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions