saveInstanceState is always null when using Android Navigation Component

Viewed 83

I am using Android Navigation component in my application while navigating back and forward from one fragment to another I realized that in the method onViewCreated saveInstanseState is always null, as I am loading data each time fragment is created I would like to have a check like

if(saveInstanseState == null) {
    presenter.loadData(...)
}
0 Answers
Related