I'm using a custom component inside of my list view and I want a way to access the instance datas of these custom components.
I initially thought it was an issue retool's list view had with custom components but I'm unable to access state information of a basic button either. The error it gives me is "can only be referenced in listView1 because it may not always be available due to performance optimizations.".
What does work are input components like text fields, listview can access the data in its data or instance value state variable.
Here is the custom component with the listview. The instance values in listview doesn't show any of its data.
If I view the state of the individual component I get this:
Which is exactly what I need and would be great if I could access this data but so far I am unable to. I can view the data but I can't access it programmatically.
To reproduce this issue you can just use a listview and a button and try to access the button's state. I tried using the legacy listview and it sets the components value as null.
TLDR: can I access a button's state or custom component's state within a list view