akxcv / vuera

:eyes: Vue in React, React in Vue. Seamless integration of the two. :dancers:
MIT License
4.3k stars 242 forks source link

fix isReactComponent returning true for blank input #78

Open bmaland opened 5 years ago

bmaland commented 5 years ago

isReactComponent returned true for blank inputs (e.g. undefined), which could produce confusing error messages. E.g. from Vue if you had components: {MyComponent: undefined} (could be undefined because of e.g. a failing import) it would display a Vuera ReactWrapper error instead of the normal Vue "[Vue warn]: Unknown custom element" error.