You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(defmultireadom/dispatch)
(defmethodread:default
[{:keys [state]} k _]
(let [st @state]
{:value (get st k)}))
(defmethodread:foo
[{:keys [state query]} k _]
(let [st @state]
(if-let [d (get st k)]
{:value (when-let [d (get st k)]
(om/db->tree query d st))}
{:remotetrue})))
(defuiSomeComponentstaticom/IQuery
(query [_]
[:foo;; The text in the render function will only show up if either :foo has a value, or :bar is added to this query.
])
Object
(render [this]
(dom/divnil"No matter what, this should render")))
(defparser (om/parser {:read read}))
(defreconciler
(om/reconciler
{:parser parser
:state {:bar42}}))
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: