react-flags
react-flags copied to clipboard
React 15.6 - react-flags.js:135 Uncaught TypeError: Cannot read property 'length' of undefined
Hi, Since version 0.1.13 I'm seeing this issue when using flags (same code) If i switch back to 0.1.12 the issue is gone. I haven't investigated this, but it seems like a props reset (The props are being refreshed and instead of country i get undefined)
react-flags.js:135 Uncaught TypeError: Cannot read property 'length' of undefined
at Flag.render (react-flags.js:135)
at ReactCompositeComponent.js:793
at measureLifeCyclePerf (ReactCompositeComponent.js:73)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (ReactCompositeComponent.js:792)
at ReactCompositeComponentWrapper._renderValidatedComponent (ReactCompositeComponent.js:819)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:359)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:255)
at Object.mountComponent (ReactReconciler.js:43)
at ReactDOMComponent.mountChildren (ReactMultiChild.js:234)
at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:701)