hyperfiddle-2020
hyperfiddle-2020 copied to clipboard
CRUD apps as a function
THis is fine:  Click inc again: 
It seems harmless, unwind this after merging with Karl
I guess the first tab needs to be hung to reproduce this. I have this locally here http://hyperfiddle.hyperfiddle.site/:domains!edit/~entity('$domains',17592186046795) which hangs when I stage a new domain/database.
``` (ns hypercrud.browser.field-test #?(:cljs (:require-macros [hypercrud.browser.field-test :refer [pull->attr-tests test-defined-pull test-partial-splat test-splat]])) (:require [clojure.test :refer [deftest is testing]] [contrib.data :as data] [contrib.reactive :as r] [contrib.uri :refer [->URI]] [hypercrud.browser.context :as context] [hypercrud.browser.field...
This is vestigial of the hydrate loop running in the browser/node (loading was much more frequent and too expensive). It causes a ton of overhead and bugs in our error...
This stage ``` [[:db/add "tempid-17592186047481-:link/fiddle-[:fiddle/ident :seattle/districts]" :fiddle/ident :a/yo] [:db/add 17592186047481 :link/fiddle "tempid-17592186047481-:link/fiddle-[:fiddle/ident :seattle/districts]"]] ``` In conjunction with this query (note #_ :db/id) ``` [:find [(pull ?link [#_:db/id :fiddle/ident]) ...] :where...
Moving `[?e :fiddle/ident]` below the or-join causes query to fail. http://hyperfiddle.hyperfiddle.net/ ``` [:find (pull ?e [:hyperfiddle/starred :fiddle/ident :db/id]) (max ?tx) :where [?e :fiddle/ident] (or-join [?e] (and [(ground hyperfiddle.io.bindings/*subject*) ?user-id] [?e...
Schema has to hydrate all the aliased db/idents somehow, in addition to the actual db/ident. Otherwise, there are valid datomic queries which return valid results, but hyperfiddle does not have...
One is parsed with the reader, and one is parsed into keyword constructor 
`http://tank.hyperfiddle.com/:dustingetz.storm!view/~entity('$',17592186047424)` is often truncated before the closing paren