Alex Gunnarson

Results 89 comments of Alex Gunnarson

Super helpful @seantempesta ! Great job finding the issue. I'll add that commit in today.

@seantempesta It's possible to detect changes if you deref within a reaction, or (anywhere, including outside of a reaction) if you use `add-watch` (verified by looking at the code). You...

@seantempesta Very astute point about the race condition. I was wondering whether the single-threadedness of the ratoms might pose an issue and it looks like indeed it does. I'll make...

That makes sense that the watches wouldn't be called until the reactions are derefed, at least in the case of a reaction. For a reaction, the cases where the watches...

Wait, so for your use case, you want to get notified every time something changes in the reactive query, right? Why don't you do something like this? : ```clojure (def...

@seantempesta : > Isn't Posh using an r/atom to store the results of the query? I haven't looked extensively at all the internals of posh. But it seems that yes....

@mpdairy @seantempesta @metasoarous : The Datomic tests (minimal as of yet, but even so) officially work! Using what @seantempesta said as a very helpful starting place, I was able to...

Thanks @seantempesta ! So I just created a function called `add-eager-watch` which lets you do what you'd like. If you do `(posh.lib.ratom/add-eager-watch sub :watcher ...)` instead of `(add-watch sub :watcher...

Well that's upsetting... I suppose the `sub` and `sub-no-deref` have weird interactions which were apparently masked when I wrote the test. This: ``` (with-setup [{:db/ident :test/attr :db/valueType :db.type/string :db/cardinality :db.cardinality/one}]...

Hey @seantempesta ! Sorry, just got through a long semester and I'm just getting back to working on this. I should push some updates over the next few weeks.