title: admin-on-rest how to implement a custom saga for auto-refresh
body: <p>In the example provided in the aor-realtime <a href="https://github.com/marmelab/aor-realtime" rel="nofollow noreferrer">readme</a></p>
  
  <pre><code>import realtimeSaga from 'aor-realtime';
  
  const observeRequest = (fetchType, resource, params) =&gt; {
      // Use your apollo client methods here or sockets or whatever else including the following very naive polling mechanism
      return {
          subscribe(observer) {
              const intervalId = setInterval(() =&gt; {
                  fetchData(fetchType, resource, params)
                      .then(results =&gt; observer.next(results)) // New data received, notify the observer
                      .catch(error =&gt; observer.error(error)); // Ouch, an error occured, notify the observer
              }, 5000);
  
              const subscription = {
                  unsubscribe() {
                      // Clean up after ourselves
                      clearInterval(intervalId);
                      // Notify the saga that we cleaned up everything
                      observer.complete();
                  }
              };
  
              return subscription;
          },
      };
  };
  
  const customSaga = realtimeSaga(observeRequest);
  </code></pre>
  
  <p><code>fetchData</code> function is mentioned, but it's not accessible from that scope, is it just a symbolic/abstract call ?</p>
  
  <p>If I really wanted to refresh the data based on some realtime trigger how could i dispatch the data fetching command from this scope ?</p>