Skip to content

Instantly share code, notes, and snippets.

@allgress
allgress / reagent_datascript2.cljs
Last active Dec 4, 2015
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 Jul 6, 2019
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)))
You can’t perform that action at this time.