Render data in a Material-UI DataGrid using the render prop in ReactiveList #1877
Unanswered
Diego-Hernandez-Moodys
asked this question in
Q&A
Replies: 1 comment 7 replies
-
@Diego-Hernandez-Moodys I suppose your problem lies in how you are using the As I can notice you are returning a function signature
use this instead and see
Also, see this example, |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using issue #969 for reference on how to build a table. I'm trying to render the reactivesearch data in a Material-UI DataGrid.
My search is based on a DataPicker with componentID "DateSensor" just like in the tutorial here.
I can certainly get results in the console
However, when I use the render prop, I get an "Warning: Functions are not valid as a React child. This may happen if you return a Component instead of from render. Or maybe you meant to call this function rather than return it." error.
Here's the full code. The collectRowsElastic() just collects the data into an array of json objects with the keys I want. Do non-reactivesearch components play nice with ReactiveList?
Also, the documentation needs to be consolidated somewhere since you have multiple websites that give inconsistent information
If you could also point me to an example that passes all the data to a state I can fetch to treat this as a child component, that would be helpful too. Something like
Beta Was this translation helpful? Give feedback.
All reactions