hyperstack-org / hyperstack-org/hyperstack
Can't access components that are memoized symbols in React 17
Offen
bug
compatibility
good first issue
- Vorherrschende Sprache
- JavaScript
- Sterne
- 538
- Forks
- 41
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.