title: How to fire again in (Flow of PagingData) if there is no Internet in the beginning
body: <p>Im trying to make the app with free bugs but I notes that the</p>
  <blockquote>
  <p>Flow&lt;PagingData&gt;</p>
  </blockquote>
  <p>if I hit it in the first time without internet, I can't
  hit it again.</p>
  <p>So my question is how to re hit the Flow any time I want,</p>
  <p>here is some of my code:-</p>
  <blockquote>
  <p><em><strong>My Fragment:</strong></em></p>
  </blockquote>
  <pre><code>override fun setBindingVariables() {
      binding.viewModel = viewModel
      // I have a fotter to keep loading the data in the recycler
      // when the internet comes back BUT the first hit SHOULD be with Internet 
      binding.adapter.adapter = redditPostsAdapter.withLoadStateFooter(
          footer = SampleLoadStateAdapter { redditPostsAdapter.retry() }
      )
  }
  
  override fun setUpViewAndActions() {
      lifecycleScope.launch(Dispatchers.Main) {
          viewModel.state.collect {
              redditPostsAdapter.apply {
                  submitData(it)
              }
          }
      }
  </code></pre>
  <blockquote>
  <p><em><strong>My ViewModel:</strong></em></p>
  </blockquote>
  <pre><code>var state: Flow&lt;PagingData&lt;ServicesProviderModel&gt;&gt; =
      repository.getServicesProviders().cachedIn(viewModelScope)
  </code></pre>
  <p>and finally</p>
  <blockquote>
  <p><strong>My Repo:</strong></p>
  </blockquote>
  <pre><code>override fun getServicesProviders(): Flow&lt;PagingData&lt;ServicesProviderModel&gt;&gt; =
      Pager(
          PagingConfig(pageSize = 5),
          pagingSourceFactory = { homeRemotePageSource },
      ).flow
  </code></pre>