Closed tomschall closed 1 week ago
Name | Link |
---|---|
Latest commit | 45edd0faa65f8a04a56166c5475614dfa33729c5 |
Latest deploy log | https://app.netlify.com/sites/plone-components/deploys/662a5ad244dbbc0008853e80 |
Name | Link |
---|---|
Latest commit | 45edd0faa65f8a04a56166c5475614dfa33729c5 |
Latest deploy log | https://app.netlify.com/sites/volto/deploys/662a5ad299000f0008ef07e8 |
@tomschall I tried it out, and it breaks in the stories that do not have a
customStore
passed down, take a look at my suggestion, I think we have to look into the generated store instead. So it takes the defaults, and the incomingcustomStore
, if any. I already tried it out and works as expected.
Thank you, i just missed to test it direct in Volto. What i am not so happy with is, that we call store.getState() 3 times in each Wrapper. I made another suggestion, that we use a const to fetch the state and then use that for the props.
Thanks @tomschall !!
Add possibility to pass down
locale
,messages
anddefaultLocale
properties inside thecustomStore
object toIntlProvider
. With this change we can control react-intl language provider from inside storybook and switch for example from english to german with storybook args.