How to Integrate Griddle into existing Redux Store // extraData not passed to customComponent
See original GitHub issueGriddle version 1.2
Expected Behavior
connect(props, dispatch)(Button) on customComponent connects to main App Redux Store
Actual Behavior
i did a connect(props, dispatch)(Button) on a custom component, but it just connects to the internal griddle redux store, and not to my main Redux store.
Steps to check
the passed store object i get in my custom rows is just the griddle store object, not the main one with the data i need
Do you have a solution for this problem? Thank You
#621 Is linked to the same problem, i use the redux store to show stateless modals.
EDIT: found out that extra data has been removed from api, still exists in the Columndefinition… how can i get the extradata back? //Any extra data that should be passed to each instance of this column extraData: React.PropTypes.object,
EDIT2:
Found it! in the cellcontainer.js the data is not passed to the customComponent, therefore no access!
<props.customComponent extraData={props.cellProperties.extraData} value={props.value} griddleKey={props.griddleKey} />
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11 (4 by maintainers)
@ryanlanciaux : Any ETA on this, or thoughts on this ? I need griddle states to be maintained in global store. I would really like if I could in some way integrate global store to griddle.
If you have any implementation idea, I can take this up too 😃