Hi, similar questions have been asked, but none helped me. I'll be glad if someone can comment, please.
I have a listview populated from Firebase querry
listview
-- age
-- gender
-- type
I have created a custom component (filter) including multiple input fields that will serve as a filter parameter for the listview.
At first, I want the entire database visible in the list view, then after I select "male" from the filter component, I want the listview to show only male records.
The problem is that I could not filter the query using the selections from the component. query filter option only gets values from the app state and page state. In fact, I first tried to update app states for corresponding filter values; however, there is no null or empty string option for app states, so, at the initial position when the page loads, the database (unfiltered one) does not populate in the listview, and even if I update the app state of - let's say - gender from the component it does not affect the listview (I tried all options of rebuilding component - page - entire app)
I hope I was able to explain my problem. How can I update the query of the listview from variables from the custom component? Thank you.