rata
rata copied to clipboard
consider creating a reactive entity
Currently there is only pull! and q! for reactive pull patterns and queries respectively.
I think it would make sense to create a reactive Entity as in Datascript. However, due to the lazy behavior of entities it would need to return r/atoms when doing keywords lookups such that the reactive behavior is kept even after several lookups.
For example:
(let [user (rata/entity! conn [:user/id 123]]
@(:user/name user))