I have the same question after reading that same line in the docs. It is a one sentence assertion without supplied reasoning why we care about that.
To put exactness to it, I might like to know if there is a recommended strategy for handling dev vs. prod environments, for example setting it to false on prod.
It would be nice to know what aspects of the app are affected by ‘layout-only view removal’.
With that said, I am inclined to ensure it is turned off in prod because view, layout, and stack navigator memory usage and performance concerns are paramount for maximizing UX quality. It sounds like garbage collection and memoization/caching are related to this. By that I mean something recycling or purge related.
It means you probably wouldn’t see the aspects of the app that
testID was falsy.
I honestly have no idea, but I might as well put some ideas out there. Someone should update the docs with an additional blob of text about it.