Skip to content

consider creating a reactive entity #1

Description

@carocad

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions