title: Observer returns empty array after fetching data
body: <p>#livedata #kotlin #android #mvvm</p>
  
  <p>why is this happened?
  I have to navigate first to get the items listed</p>
  
  <p>HomeFragment.kt: <a href="https://pastebin.com/97CikvMu" rel="nofollow noreferrer">https://pastebin.com/97CikvMu</a></p>
  
  <p>HomeFragmentViewModel.kt: <a href="https://pastebin.com/KAhz3d6n" rel="nofollow noreferrer">https://pastebin.com/KAhz3d6n</a></p>
  
  <p>Adapter: <a href="https://pastebin.com/Cn99MEZu" rel="nofollow noreferrer">https://pastebin.com/Cn99MEZu</a></p>
  
  <pre class="lang-kotlin prettyprint-override"><code> homeFragmentViewModel.todoList.observe(viewLifecycleOwner, Observer {
              it?.let {
                  todoListAdapter.submitList(it)
              }
          })
  </code></pre>