From 9247b1935d397ced68385d97e19d51f415a85e06 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Tue, 21 Nov 2017 15:03:06 +1300 Subject: [PATCH] Change query cache from being an atom to a ratom --- src/re_frame/subs.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/re_frame/subs.cljc b/src/re_frame/subs.cljc index 6b243a8..ea50b12 100644 --- a/src/re_frame/subs.cljc +++ b/src/re_frame/subs.cljc @@ -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]] + [re-frame.interop :refer [add-on-dispose! debug-enabled? make-reaction ratom? deref? dispose! reagent-id ratom]] [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 (atom {})) +(def query->reaction (ratom {})) (defn clear-subscription-cache! "Causes all subscriptions to be removed from the cache.