How can I filter a list when I apply some filters using a bottom sheet?

Hi,
I have a list that gets populated based on a backend query and returns all the results.
Now I want to filter this list based on user input. Eg. Show only items of a specific category name etc.

I have watched a couple of video tutorials but they all propose that I build a copy of the list and pre-apply the filter and then use conditional logic to show hide that list. This method would not work for me because I do not want to assume all the permutations and combinations of the filters and create that many copies of the list.

I am sure there is a different way to solve this problem, just want to know how :)

Any help is appreciated.

2
2 replies