A simple way of doing this is
requireActivity().isChangingConfigurations
which I've used for similar purposes in regular fragments as well.