mridgway / hoist-non-react-statics

Copies non-react specific statics from a child component to a parent component
Other
1.8k stars 93 forks source link

Object.getPrototypeOf called on non-object #82

Open Junting-Liu opened 5 years ago

Junting-Liu commented 5 years ago

If i use hoist-non-react-statics In some low version browsers,like oppo r9m android5.1 ,there will be an error in console。 The error information is “Object.getPrototypeOf called on non-object” 。 And there is the reason

Is it better to add some fault-tolerant logic?

mridgway commented 4 years ago

This sounds like an invalid component type is being passed to hoistNonReactStatics.