Skip to content

Compare: Documentation (om.next)

New page
Showing with 15 additions and 0 deletions.
  1. +11 −0 Documentation-(om.next).md
  2. +4 −0 Om-Next-FAQ.md
11 changes: 11 additions & 0 deletions Documentation-(om.next).md
Expand Up @@ -20,6 +20,7 @@
* [get-unbound-query](#get-unbound-query)
* [get-params](#get-params)
* [set-query!](#set-query)
* [update-query!](#update-query)
* [query->ast](#query-ast)
* [ast->query](#ast-query)
* **Components**
Expand Down Expand Up @@ -212,6 +213,16 @@ Change the query of a component. Takes a map containing :params and/or
expression. Will schedule a re-render as well as remote re-sends if
necessary.

### update-query!

```clj
(om/update-query! some-component
(fn [{:keys [query params] :as q}]
(update q :query conj :foo)))
```

Update a component's query and/or query parameters with a function.

### query->ast

```clj
Expand Down