3 ms·
> As for monitoring changes, I'm using the Posh lib (also mentioned in article). It monitors the DB and re-renders react component if there are transactions rel
by amelius 7y ago
> As for monitoring changes, I'm using the Posh lib (also mentioned in article). It monitors the DB and re-renders react component if there are transactions relevant to component's queries. It seems very efficient so far, but I still have to test it with large number of components and transactions.
Interesting. Do you know if, upon a change, it reruns the queries from scratch, or does it update the results based on the actual changes?
- jmiskovic 7y agoIt will re-run the queries whenever new transactions contain new data for queried entities. It does so by pattern matching on transaction data. For truly reactive datalog subscriptions, let's see what happens with clj-3df project. Unlike Datascript, it requires you to use server infrastructure right from start.