FormidableLabs / radium

A toolchain for React component styling.
http://formidable.com/open-source/radium/
MIT License
7.38k stars 308 forks source link

Warn on and ignore null or undefined values #245

Closed paulwehner closed 9 years ago

paulwehner commented 9 years ago

I made a stackoverflow outlining the issue:

http://stackoverflow.com/questions/31264376/reactjs-radium-altjs-uncaught-typeerror-cannot-read-property-tostring-of

ianobermiller commented 9 years ago

The only time prefixer calls toString is on the value of a property when it is not a string. So if you are seeing this error, you must be passing null or undefined as the value for some property. Radium should probably just warn you about this and ignore it.