Added tests for GRIDDLE_UPDATE_STATE and adjusted its behavior a bit (e.g. not losing data).
Updated actions.updateState to pass all state through, instead of only data, pageProperties and sortProperties. That limitation was introduced by @joellanciaux way back in #505, but it's not obvious why.
Added a story with a minimal repro (changing a <Griddle /> prop), which I ultimately expanded to demonstrate changing several <Griddle /> props, including data and styleConfig.
Why these changes are made
Changes to props should be reflected in Griddle's store and its rendering.
Griddle major version
1.11
Changes proposed in this pull request
Fixes #781 root cause (cc @sum32)
GRIDDLE_UPDATE_STATE
and adjusted its behavior a bit (e.g. not losingdata
).actions.updateState
to pass all state through, instead of onlydata
,pageProperties
andsortProperties
. That limitation was introduced by @joellanciaux way back in #505, but it's not obvious why.<Griddle />
prop), which I ultimately expanded to demonstrate changing several<Griddle />
props, includingdata
andstyleConfig
.Why these changes are made
Changes to props should be reflected in Griddle's store and its rendering.
Are there tests?
Tests and stories!