Fork me on GitHub
#om
<
2016-07-05
>
hlolli15:07:50

For an advanced search component, what would be more cleaver architecture. Root -> Search Query -> Search Results. Or Root -> siblings(Search Query ; Search Results).

abtv18:07:41

Hi, guys! How can I disable console logging of om.next transactions in release mode?

ethangracer18:07:18

@abtv: for your release build, set the goog.logger level to none

ethangracer18:07:54

(:require [om.next :refer [*logger*]]
             [goog.debug.Logger.Level :as level])
…
(.setLevel *logger* (level/getPredefinedLevel "OFF"))

anmonteiro18:07:11

@abtv: @ethangracer: alternatives are setting the :logger to nil in the reconciler and setting goog.DEBUG to false in the CLJS compiler option closure-defines

ethangracer18:07:44

cool, thanks @anmonteiro that’s a lot simpler

abtv19:07:24

@anmonteiro: great thanks! closure-defines is the best way in my case

martinklepsch19:07:56

How again can I specify a react key for a node?

martinklepsch19:07:14

I tried :key in the attributes map but that didn't work

anmonteiro19:07:20

@martinklepsch: :key for om.dom elements, :react-key for Om (Now or Next) components

martinklepsch19:07:52

(om/build currency-option {:value (:code currency) :text label :react-key (:code currency)})
@anmonteiro: like this?

martinklepsch20:07:44

ah needs to be two separate maps apparently

therabidbanana21:07:41

Given a setup like in the wiki for idents (https://github.com/omcljs/om/wiki/Components,-Identity-&amp;-Normalization), is (om/ident Person {:name "bob"}) a valid way to generate an ident for a Person if I don't have a component instance for it (for example, in a custom merge function)? It seems to work until advanced compilation gets turned on.

johanatan21:07:54

hi, is it possible to use om to develop react components which will plug into an existing javascript react application?

therabidbanana21:07:55

(To answer my own question, I suspect the answer is no, given om/get-query exists and has this special case for advanced compilations: https://github.com/omcljs/om/blob/747655fe65b4a46a502d9b76171642ef0f67d532/src/main/om/next.cljs#L302-L309 )