In my code, I use two methods to pass data to a new fragment. Either I pass data through Bundle or sometimes write setters to pass data.
Both works fine, no issues faced yet.
But now, I am optimising my code keeping in mind savedInstances, orientation changes or any other possible way where data can be lost.
So, the exact doubt in my mind is whether the data sent via bundle remains intact by default on orientation change / fragment restored from background. Or we have to use savedInstance in the case of bundles as well. As per my knowledge, data set through setters get lost.