title: How to dispatch an event from an event in re-frame
body: <p>I followed this example:
  <a href="https://github.com/Day8/re-frame/blob/master/docs/FAQs/PollADatabaseEvery60.md" rel="noreferrer">https://github.com/Day8/re-frame/blob/master/docs/FAQs/PollADatabaseEvery60.md</a></p>
  
  <p>And here is my interval handler</p>
  
  <pre><code>(defonce interval-handler
    (fn [{:keys [action id frequency event]}]
      (let [live-intervals (atom {})]
        (condp = action
          :start (swap! live-intervals assoc id (js/setInterval #(re-frame/dispatch event) frequency))
          :end (do (js/clearInterval (get live-intervals id))
                   (swap! live-intervals dissoc id))))))
  
  (re-frame/reg-fx
    :interval
    interval-handler)
  </code></pre>
  
  <p>I'm trying to dispatch this interval event from another event right here:</p>
  
  <pre><code>(re-frame/reg-event-db
    :start-playing
    (fn [db _]
      (re-frame/dispatch [:interval {:action :start
                         :id :some-awesome-id
                         :frequency 1000
                         :event [:tick]}])
      (assoc db :is-playing? true
             :fake (random-active-color db)
             :real (random-active-color db))))
  </code></pre>
  
  <p>but it says <code>re-frame: no  :event  handler registered for:  :interval</code></p>
  
  <p>Is this not possible to do?</p>