om.core/value, om.core/path, om.core/state are not going to change and
can be used. In the case of om.core/value the value may well be stale
- thus deref - but even then the value may have been deleted.

David

On Tue, Oct 14, 2014 at 1:43 PM, Leon Grapenthin
<[email protected]> wrote:
> Thank you, Moritz. However, since it is not documented, how do you know? By 
> study of the implementation?
>
> Since there is not a single defn- in om.core, is it really API exposed and 
> there to stay?
>
> Would using it like I suggested in the example really have consistency 
> benefits?
>
>
> On Sunday, October 12, 2014 11:48:54 PM UTC+2, Moritz Ulrich wrote:
>> Am 12.10.2014 21:33 schrieb "Leon Grapenthin" <[email protected]>:
>>
>> >
>>
>> > Regarding this 
>> > (https://github.com/swannodette/om/wiki/Basic-Tutorial#debugging-om-components)
>> >  section of the om tutorial:
>>
>> >
>>
>> > Couldn't the click handler in theory delete a version of the contact that 
>> > has not been rendered to the user?
>>
>> >
>>
>> > E. g. Wouldn't
>>
>> >
>>
>> > #js {:onClick (let [rendered-contact (into {} contact)]
>>
>> >                 (fn [e] (put! delete rendered-contact)))}
>>
>> >
>>
>> > be the only way to make the click handler consistent with what is 
>> > displayed to the user? - If so, could we get an operation to retrieve the 
>> > rendered value during the render phase as non-cursor to close over it 
>> > (probably also deref)?
>>
>> `om/value'
>>
>> > If not, how should I take "Thus you are not allowed to use cursors outside 
>> > of the render phase as this is almost certainly a concurrency bug!" - How 
>> > exactly is that /not/ what we are doing in the click handler of the 
>> > tutorial?
>>
>> >
>>
>> > If it doesn't make a difference, please explain why.
>>
>> >
>>
>> > --
>>
>> > Note that posts from new members are moderated - please be patient with 
>> > your first post.
>>
>> > ---
>>
>> > You received this message because you are subscribed to the Google Groups 
>> > "ClojureScript" group.
>>
>> > To unsubscribe from this group and stop receiving emails from it, send an 
>> > email to [email protected].
>>
>> > To post to this group, send email to [email protected].
>>
>> > Visit this group at http://groups.google.com/group/clojurescript.
>
> --
> Note that posts from new members are moderated - please be patient with your 
> first post.
> ---
> You received this message because you are subscribed to the Google Groups 
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to