I’m trying to make a multi select filter in my app using individual buttons. I can get single buttons to set the state and sort a repeating group but once a button is clicked, how do “unclick” that button?
I’ve read that I can set the state to a number and increment by 1 on each click but how do I make the sort conditional to only sort when the state is a divisible by 2?
This would help me fix my root problem.