(current-state entity)
Used for debugging only, non-reactive. Returns a map of the existing state of the reactive entity - kind of like what you would get if you called d/touch on a DataScript entity.
Useful for logging out the state of a reactive entity during a render pass, without having to subscribe to all changes on the entity.
Used for debugging only, non-reactive. Returns a map of the existing state of the reactive entity - kind of like what you would get if you called d/touch on a DataScript entity. Useful for logging out the state of a reactive entity during a render pass, without having to subscribe to all changes on the entity.
(lookup-ref? eid)
Returns true if this eid looks like a lookup-ref (e.g. [:entity/id 123])
#TODO: can check a lot more about lookup-refs here
Returns true if this eid looks like a lookup-ref (e.g. [:entity/id 123]) #TODO: can check a lot more about lookup-refs here
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close