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
now if you run yarn storybook and check the story, you'll see this:
as you see, "THEMES.PRIMARY" is stored in theme instead of "primary" which is the value of THEMES.PRIMARY
I think the cause for this is related to this issue, except this will result in more serious problems
The text was updated successfully, but these errors were encountered:
Describe the bug
when I use an object in defaultProps, object name is stored in default prop as an string instead of object value
To Reproduce
here is a very simple example:
Theme
fromconfig.js
, setstheme
prop's default value toTHEMES.PRIMARY
and just renderstheme
:and here is
config.js
:yarn storybook
and check the story, you'll see this:as you see,
"THEMES.PRIMARY"
is stored intheme
instead of"primary"
which is the value ofTHEMES.PRIMARY
I think the cause for this is related to this issue, except this will result in more serious problems
The text was updated successfully, but these errors were encountered: