Implement the ability to preserve screen components when changing the selected source table on the screen in the builder with a custom style. Keeping the components intact would ensure a smoother, more seamless workflow, allowing editors to make changes to the selected source table without losing current component configurations.
It is difficult to preserve components when the underlying table is gone - column names are different, etc.
A warning should come up that you will lose all your components when changing a screen source. I may have put that in as a Feature request since this has bitten me more than twice.
Best practice is to copy/duplicate the current tab/screen before changing the data source. Make the change and then paste in the components and see what Glide recognizes.
This issue happened to me a number of times when using the same table as the source. Including the problem where innocently changing a setting causes all of the components to disappear.
But with respect to the mechanism of using last components, why must it be connected to the data? A component can be added in an empty state, right?
I use this method too because I don’t know of another way at the moment.