Skip to content

Instantly share code, notes, and snippets.

@kennyjwilli
kennyjwilli / reagent_datascript2.cljs
Created Dec 4, 2015 — forked from allgress/reagent_datascript2.cljs
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]
@kennyjwilli
kennyjwilli / reagent_datascript.cljs
Created Dec 4, 2015 — forked from allgress/reagent_datascript.cljs
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)))