This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; In case anyone else is interested, here are a few specter functions I wrote that will | |
| ; find all the nested maps inside a composite datastructure, | |
| ; assign each of them a temporary id | |
| ; then it'll pull it apart into a list, | |
| ; and replace all references to the map with its id | |
| (ns extract-maps | |
| (:require [datascript.core :as d] | |
| [com.rpl.specter :as sp | |
| :refer [ALL LAST MAP-VALS FIRST subselect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns motioncards | |
| (:require [reagent.core :as rx ] | |
| [posh.core :as rx-db :refer [pull transact!]] | |
| [reagent.session :as session] | |
| [datascript.core :as mdb ] | |
| [cljs.reader ] | |
| [clojure.string :as str ] | |
| [soda-ash.element :as s ]) | |
| (:require-macros | |
| [reagent.ratom :refer [reaction]] |
NewerOlder