It’s probably a reflection of how sad my life is but I’m pretty keen to map out all possible ways to do this and compare them - I think some of it probably comes down to the other uses I have for custom states when using tables and RGs.
Setting the data for the group is probably what you’d call the expected approach, but I started leaning into / getting experimental with custom states a while back and just sort of ran with it.
I think that for me it feels consistent to have the custom state as the switch for showing/hiding the group, filtering the table by the item unique ID, and then setting the data as well. Again, probably just preference.