Passing props to customRowComponent
See original GitHub issueI looked through the issues and didn’t see anything specifically addressing my need to pass additional props to a customRowComponent
. For example, I have application state that needs to be referenced in the render method of a customRowComponent
.
A simple example would be that the site could be in one of two modes (live, maintenance). The list of items being rendered in Griddle would render differently depending on the site mode. Right now I can’t see an easy way of getting access to that data in the customRowComponent
render method. Obviously I could do some hacky and inefficient stuff to add fields to each row of the results after the data is retrieved from the server, but that’s not pretty at all. Is there any way to do this now?
Is there at least a way to define some specific prop like customRowComponentMetaData
that would get passed into each row?
Issue Analytics
- State:
- Created 8 years ago
- Comments:8 (5 by maintainers)
@dlong500 Thanks for this.
The #302 PR has been merged, but there is not a new release yet so I’m leaving this issue open for reference until then. I supposed the docs probably need to be updated too so it’s probably good to keep this open until that happens as well. I could give it a go at updating the docs at some point soon.