Revert "Change query cache from being an atom to a ratom"

This is no longer necessary, so we are reverting it.

This reverts commit 9247b1935d.
This commit is contained in:
Daniel Compton 2018-01-19 21:29:27 +13:00
parent f39eee5ad4
commit ef56d1125d
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
(ns re-frame.subs
(:require
[re-frame.db :refer [app-db]]
[re-frame.interop :refer [add-on-dispose! debug-enabled? make-reaction ratom? deref? dispose! reagent-id ratom]]
[re-frame.interop :refer [add-on-dispose! debug-enabled? make-reaction ratom? deref? dispose! reagent-id]]
[re-frame.loggers :refer [console]]
[re-frame.utils :refer [first-in-vector]]
[re-frame.registrar :refer [get-handler clear-handlers register-handler]]
@ -15,7 +15,7 @@
;; De-duplicate subscriptions. If two or more equal subscriptions
;; are concurrently active, we want only one handler running.
;; Two subscriptions are "equal" if their query vectors test "=".
(def query->reaction (ratom {}))
(def query->reaction (atom {}))
(defn clear-subscription-cache!
"Causes all subscriptions to be removed from the cache.