Add note about lazy cursors.

This commit is contained in:
Dan Holmsand 2016-06-07 16:23:13 +02:00
parent 1280f58201
commit 30c9402fe9
1 changed files with 3 additions and 1 deletions

View File

@ -300,7 +300,9 @@ value) when the cursor is modified.
Given that set-get function, (and that state is a Reagent atom, or
another cursor) these cursors are equivalent:
(cursor state [:foo]) and (cursor set-get [:foo]).
"
Note that a cursor is lazy: its value will not change until it is
used. This may be noticed with add-watch."
([src path]
(ratom/cursor src path)))