title: Fragment not attached to context on Navigation Component
body: <p>I was navigating through my fragment and suddenly this error happen</p>
  <pre><code>java.lang.IllegalStateException: Fragment PesananFragment{3c77b29} (5987833e-384c-48a3-b41b-2d3d1ecad053)} not attached to a context.
      at androidx.fragment.app.Fragment.requireContext(Fragment.java:805)
      at id.vividi.ui.utama.PesananFragment$fetchPaymentData$1.invokeSuspend(PesananFragment.kt:107)
      at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
      at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
      at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
      at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
  </code></pre>
  <p>and this is my code causing this error</p>
  <pre><code>VolleySingleton.getInstance(requireContext()).addToRequestQueue(historyRequest)
  </code></pre>
  <p>This error always happened when I am navigating through this fragment
  I've tried using <strong>requireContext.applicationContext</strong> nothing happen, the error still exists.</p>