You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When styleName contains extra spaces, the library doesn't work. In fact the entire output of the component disappears rather than giving a warning.
Extra spaces can be present as a result of conditional styles.
For example, when isLoggedIn is false, the resulting string becomes class1 (with an extra space at the end).
When
styleName
contains extra spaces, the library doesn't work. In fact the entire output of the component disappears rather than giving a warning.Extra spaces can be present as a result of conditional styles.
For example, when
isLoggedIn
is false, the resulting string becomesclass1
(with an extra space at the end).Of course, this can very easily be worked around by moving the space from
class1
toisLoggedIn
.I believe empty strings should be filtered out after splitting on space in
react-css-modules.macro/src/macro.js
Lines 97 to 99 in f3a53bc
The text was updated successfully, but these errors were encountered: