Hi. I am trying to understand best practice for my scenario.
I have a main RG that refers to a data source, like the image below. There is a nested RG inside that gets the relevant rows. I would like to change the data source by setting a state, but when I attempt it with a condition it throws an error on the original data source.
As a work around I have created a copy of the main RG, set it data source accordingly and then control visibility with states.
Is this a suitable solution, albeit a bit more work?
With custom states, especially when referring to them in nested RG’s, you want to ideally have the custom states on the page element, that way it can be referred to globally.
What is the error? It is very strange that adding a conditional somehow changes your original data source to an error. Conditionals don’t actually modify data so I think you may be using different Groupings in your conditional which is what is causing the error.