           (str k " " v))
         stats)))
 
-(defn usage-info []
+(defn usage-info-render []
   (let [stats @(re-frame/subscribe [:rpc-usage/data])
         methods-filter @(re-frame/subscribe [:rpc-usage/filter])]
     [react/view {:flex 1

       :auto-focus      false}]
     [stats-table stats]]))



    {: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]}
