Skip to content

Instantly share code, notes, and snippets.

@allgress
allgress / reagent_datascript2.cljs
Last active Jun 2, 2020
Use experimental fork of DataScript from https://github.com/allgress/datascript to handle undo and per-query subscriptions
View reagent_datascript2.cljs
;;; Use experimental fork of DataScript from https://github.com/allgress/datascript to handle undo and per-query subscriptions
(ns reagent-test.core
(:require [reagent.core :as reagent :refer [atom]]
[datascript :as d]
[cljs-uuid-utils :as uuid]))
(enable-console-print!)
(defn bind
([conn q]
@allgress
allgress / reagent_datascript.cljs
Last active Apr 8, 2021
Test use of DataScript for state management of Reagent views.
View reagent_datascript.cljs
(ns reagent-test.core
(:require [reagent.core :as reagent :refer [atom]]
[datascript :as d]
[cljs-uuid-utils :as uuid]))
(enable-console-print!)
(defn bind
([conn q]
(bind conn q (atom nil)))