title: : Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()
body: <p>I am using live data in my application for all the network calls and response handling.</p>
  
  <p>In one of the scenarios, my recycler view is loading some data in its view holder's <code>onBind</code> and the response is updating the UI. In order to do so, I have to provide a <code>lifecycleOwner</code> to the observer. </p>
  
  <p>As recycler view doesn't have any lifecycle owner of its own, I am using the parent fragment for that by using <code>parentFragment.viewlifecycleOwner</code> but somehow it is giving an error.</p>
  
  <p>How can a view Holder have its instance when the parent fragment is not having its instance?</p>
  
  <pre><code>viewModel.responseState.observe(parentFragment.viewLifecycleOwner, Observer {
      updateUI(it)
  })
  </code></pre>
  
  <blockquote>
    <p>Fatal Exception: java.lang.IllegalStateException: Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()</p>
  </blockquote>