EQWorks / widget-studio

Widget-creating tool for charts, maps, tables, stats
https://eqworks.github.io/widget-studio/
2 stars 3 forks source link

[G2M] Reverse state destructuring for state definitions #223

Closed geoerika closed 1 year ago

geoerika commented 1 year ago

https://www.notion.so/eqproduct/Reverse-state-destructuring-eafa4aaddc3643939ea832a1cfda1e44?pvs=4

Problem: I did some refactoring in components to the way state is defined by using state destructing. I am reversing to the initial state definitions: ex:

const dataReady = useStoreState((state) => state.dataReady)

to avoid issues mentioned here:

https://github.com/ctrlplusb/easy-peasy/issues/212#issuecomment-504594010

github-actions[bot] commented 1 year ago

📚 Storybook preview (updated to 712a270f2081f81ff4952fae6109c4c8931b5eb7)