groupRenderer does not work correctly #1008
-
|
Describe the bug
In the scenario above, nothing is shown, the data is not fetched correctly because person is an
What is the solution? Do I do something wrong? Expected behavior Library Version Desktop (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I solved this issue, if anyone wants to see how, this is the code: Custom renderer component (this works whether you want to render a custom item component or a group component) Then just use it like this: |
Beta Was this translation helpful? Give feedback.
-
Triage Review (0.30.0-beta.9)Status: Not a bug — resolved by the reporter ✅ The reporter solved their own issue in the comments. The original problem was a misunderstanding of the The correct usage (as the reporter discovered): groupRenderer={({ group }) => <CustomGroupRenderer group={group} />}The This is a usage question, not a library bug. The API works as designed in both 0.28 and 0.30. This issue can be closed. |
Beta Was this translation helpful? Give feedback.
I solved this issue, if anyone wants to see how, this is the code:
Custom renderer component (this works whether you want to render a custom item component or a group component)
Then just use it like this: