hyperstack-org / hyperstack-org/hyperstack
Can't access components that are memoized symbols in React 17
Đang mở
bug
compatibility
good first issue
- Ngôn ngữ chính
- JavaScript
- Star
- 538
- Fork
- 41
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
```
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.