Fork me on GitHub
#hyperfiddle
<
2018-11-16
>
dustingetz01:11:58

@alexandrkozyrev [[:db.fn/cas [:global/pointer 22] :global/counter (:global/counter val) (inc (:global/counter val))]] – in the entity position (that first argument) needs to be something that resolves to a valid datomic entity - for this "lookup ref" syntax to work, the datomic attribute schema needs to be set to :db.unique :identity

dustingetz01:11:21

Make a new attribute and set unique to identity, then you can use the [attr val] pair instead of the db/id

dustingetz01:11:39

Or just write [[:db.fn/cas 17592186045780 :global/counter (:global/counter val) (inc (:global/counter val))]]

dustingetz01:11:19

:hypercrud.browser/data is technical debt, prefer to use val until we provide further guidance

alexandrkozyrev12:11:43

feature request: can you please make “auto-transact” mode visible in top-nav, now it’s only displayed in “stage” pop-down window

alexandrkozyrev12:11:15

@dustingetz I get “user tx failed validation” alert on the http://tank.hyperfiddle.net/:dustingetz!counter/, both my variants (db/id and :db.unique :identity) show me about 1s latency, do you have the same mileage?

dustingetz12:11:50

@alexandrkozyrev Can you capture a screenshot of the timings in the developer tools?

dustingetz13:11:40

@alexandrkozyrev If you hover the stage you can see auto-transact status, is that sufficient for your need?

alexandrkozyrev20:11:10

@dustingetz feature request: fiddle cloning/mocking. intent: speed-up fiddle evolution. details: quite often I can understand what variant of “the same fiddle” is best only when I play with both of them (for instance, the only difference between “two variants of the same fiddle” is :on-click function). at the moment I use #_ a lot or copypaste scr to another fiddle (if all/both options doesn’t fit in one screen/page). I’d like to have a clone button or another way to mock a fiddle - quite close to https://github.com/vvvvalvalval/datomock

dustingetz21:11:49

Fiddle forking is coming back asap!