Fork me on GitHub
#om
<
2017-08-28
>
cycle33705:08:55

hello fellow om writers

cycle33705:08:13

I was wondering what can I use for a typeahead search input ?

zalky21:08:49

Hi all. In the om (previous) documentation on cursors it says: > You can create sub-cursors from cursors by just calling get or get-in on them (works only during the render phase). Which seems to suggest you cannot create sub-cursors with associative operations outside the render phase. However, something like:

(dom/button
  {:on-click #(om/transact! (get app :toggle) not)}
  "+")
Seems to work just fine. Am I interpreting the doc too strictly? Is this unsafe or unsupported behaviour? Thanks!