rata icon indicating copy to clipboard operation
rata copied to clipboard

consider creating a reactive entity

Open carocad opened this issue 6 years ago • 0 comments

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))

carocad avatar Jan 25 '19 18:01 carocad