        :auto-focus      false}]
      [stats-table stats]]))
 
-
+(defn usage-info []
+  (reagent/create-class {:component-did-mount (fn []
+                                                (reset! rpc-refresh-interval (utils/set-interval #(re-frame/dispatch [::get-stats]) rpc-usage-refresh-interval-ms)))
+                         :component-will-unmount (fn []
+                                                   (utils/clear-interval @rpc-refresh-interval)
+                                                   (reset! rpc-refresh-interval nil))
+                         :reagent-render usage-info-render}))

     [quo.react-native/view
      {:style {:flex-direction  :row
               :margin-top      8
               :justify-content :space-between}}
      [quo.core/button
       {:on-press            #(re-frame/dispatch [::get-stats])
        :accessibility-label :rpc-usage-get-stats}
       (i18n/label :t/rpc-usage-get-stats)]
      [quo.core/button
       {:on-press            #(re-frame/dispatch [::reset])
        :accessibility-label :rpc-usage-reset}

    {:method "rpcstats_reset"
     :params []
     :on-success #(log/debug "rpcstats_reset success")})))

;; RPC refresh interval ID
(defonce rpc-refresh-interval (atom nil))

;; RPC usage refresh interval (ms)
(def rpc-usage-refresh-interval-ms 2000)

(fx/defn handle-stats
  {:events [::handle-stats]}
