question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to Integrate Griddle into existing Redux Store // extraData not passed to customComponent

See original GitHub issue

Griddle 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:open
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
umguptacommented, May 2, 2017

@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 😃

1reaction
dan3721commented, Jun 12, 2017
  • 1 for ETA?
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant create connected containers or enhancers for griddle
I'm trying to create an Enhancer for griddle v1.6.0. I am getting this error: Uncaught Error: Could not find "store" in either the...
Read more >
Few Ways to Update a State Array in Redux Reducer - Medium
To append we spread the data from the state first and then add the new data. 2. Removing an item from an array....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found