Fork me on GitHub
#hyperfiddle
<
2024-02-17
>
Vincent21:02:12

So with XTDB new database entries would reflect in the ui immediately, but with datomic it seems that a fresh query is not triggered when new entries enter the db, and i'm wondering if that's because (d/db conn) references a database at a particular moment in time ... and therefore we should probably be doing (constantly ...) re-grip'ing the database as an electric definition?

Dustin Getz21:02:41

you need the latest-db helper in both xtdb and datomic

Dustin Getz21:02:57

there is a datomic version around if you search

Dustin Getz21:02:01

search the slack

Vincent18:02:28

Gotcha. That makes sense. Will seek.

Vincent18:02:35

Our plan is to use datomic cloud and share state across 2 electric apps 😈

Vincent18:02:23

(e/watch conn will work for datascript because it's clientside, but for serverside... needs magic, is what i understand so far.