hyperstack-org / hyperstack-org/hyperstack

Can't access components that are memoized symbols in React 17

Open
#420 0 comments 0 reactions 0 assignees View on GitHub
bug compatibility good first issue
Dominant language
JavaScript
Stars
538
Forks
41
PR merge metrics
No merged PRs in 30d

Description

they changed something

you can patch it like this:

```ruby
# patch to detect new style React memoized symbols
module Hyperstack
module Internal
module Component
class ReactWrapper
def self.stateless?(ncc)
`typeof #{ncc} === 'symbol' || typeof #{ncc}.$$typeof === 'symbol' || (typeof #{ncc} === 'function' && !(#{ncc}.prototype && #{ncc}.prototype.isReactComponent))`
end
end
end
end
end
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.