diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-20 00:48:45 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-20 00:55:13 +0100 |
commit | 02f8241b5ba2610f5d5bd5ee92e59bcb2a803c57 (patch) | |
tree | b9bc863ba3bd174ec04f727344382e4c37bff4da /src/frontend/tau | |
parent | 5730dd7812d979c07f8f6f52852603bf928c4bc0 (diff) |
feat: Set up initial re-frame subs
Diffstat (limited to 'src/frontend/tau')
-rw-r--r-- | src/frontend/tau/subs.cljs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/frontend/tau/subs.cljs b/src/frontend/tau/subs.cljs new file mode 100644 index 0000000..53d6ff9 --- /dev/null +++ b/src/frontend/tau/subs.cljs @@ -0,0 +1,43 @@ +(ns tau.subs + (:require + [re-frame.core :as rf])) + +(rf/reg-sub + :search-results + (fn [db _] + (:search-results db))) + +(rf/reg-sub + :stream + (fn [db _] + (:stream db))) + +(rf/reg-sub + :global-search + (fn [db _] + (:global-search db))) + +(rf/reg-sub + :service-id + (fn [db _] + (:service-id db))) + +(rf/reg-sub + :services + (fn [db _] + (:services db))) + +(rf/reg-sub + :current-match + (fn [db _] + (:current-match db))) + +(rf/reg-sub + :global-stream + (fn [db _] + (:global-stream db))) + +(rf/reg-sub + :show-global-player + (fn [db _] + (:show-global-player db))) |