I have single activity, FragmentHome contains viewpager2. Inside of viewpager there is FirstFragment.
when I want to navigate from FirstFragment to SecondFragment which is not in viewpager2
it throws
java.lang.IllegalArgumentException: navigation destination com.example.mymessangerfcm:id/action_FirstFragment_to_SecondFragment is unknown to this NavController
Dear community how to handle such navigation, and why the exception is thrown?

