om Questions

3

I wonder how showing and hiding of a modal dialog should be implemented with Om or Reagent. Since my UI is a function on the state, the show/hide should be triggered by a property in this state. B...
Capitalization asked 29/2, 2016 at 20:39

2

Solved

According to Om Next's documentation: query->ast (om.next/query->ast '[(:foo {:bar 1})]) Given a query expression return the AST. ast->query (om.next/ast->query ast) Given a query ex...
Yahairayahata asked 27/2, 2016 at 21:38

1

Solved

Why is the counter in the child component updating fine when I comment (om/update-state! owner :clicked not) and not when I uncomment it in the parent component in the code below? The counter ...
Indochina asked 18/9, 2014 at 16:9

3

Solved

I'm going to learn Clojurescript for building UIs and I want to use the React wrapper.Should I learn React before diving into Om?
Hoeve asked 2/5, 2016 at 21:19

2

Solved

I have my own opiniated way on how to use React and am building my own framework, inspired by Om. I am implementing something a bit similar to the Flux architecture, with stores that can update the...
Iona asked 10/8, 2014 at 12:6

1

I have developed Om/React components, but I feel really uncomfortable not being able to drive my development with unit tests. I have tried to setup my clojurescript project to run unit tests on tho...
Illhumored asked 6/10, 2014 at 5:31

2

Solved

I'm getting to be a fan of David Nolen's Om library. I want to build a not-too-big web app in our team, but I cannot really convince my teammates to switch to ClojureScript. Is there a way I can ...
Sensualism asked 11/9, 2014 at 15:7

1

Solved

How can I parse a string of Hiccup into a Hiccup node? For example, "[:b 'hello world']" into [:b "hello world"]
Karonkaross asked 21/3, 2015 at 3:51

1

I have some external UI with abstraction of react components and I want to reuse them from reagent, is there any way to directly render predefined react component just by passing data from clojures...
Somatotype asked 27/2, 2015 at 6:46

3

Solved

I've been following the om tutorial. Im using Light Table to setup an External Browser connection. Additionally, in my clojurescript code I'm calling (enable-console-print!) to send my println stat...
Kilovolt asked 9/4, 2014 at 19:11

2

I've been looking around for how to create animations in Om, I've tried creating a RaphaelJs component with moderate success. I get the animation I want, but for some reason Om renders multiple ins...
Stairwell asked 29/4, 2014 at 15:6

2

Solved

This is what I have: (defn view [cursor owner] (reify om/IDidMount (did-mount [_] (-> (js/$ ".dropdown-toggle") (.dropdown))) om/IRender (render [_] (dom/div #js {:className "dropdown"...
Gezira asked 12/7, 2014 at 1:47

1

Solved

I want to use this Om snippet in my ClojureScript application: (dom/img #js {:className "img-circle" :src "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" :...
Anarchist asked 9/12, 2014 at 7:37

2

Solved

I am going through this OM tutorial but it's not clear to me when to use OM components vs plain functions (in particular the om/component macro). The tutorial writes: The first argument is a fu...
Equivocation asked 28/6, 2014 at 11:39

1

Solved

I have had a look at using Om for rich client website design. This also is my first time using core.async. Reading the tutorial https://github.com/swannodette/om/wiki/Basic-Tutorial I have seen the...
Degraded asked 28/5, 2014 at 6:45

1

Solved

I understand that you can initiate the state of a component by passing a map as the value of the :init-state keyword. But by passing this map as the value of the :state keyword, for example, betwee...
Pasteurize asked 9/6, 2014 at 15:18

1

I just started to use Om (a reactjs based library for ClojureScript). I would like to filter a list based on user input. The following works but the solution seems to be to complicated. Is there a ...
Graduate asked 20/4, 2014 at 7:54

1

Solved

I have gone through David Nolen's basic Om tutorial but I am still a bit confused about the difference between application state and component local state. When cursors are referred to is it referr...
Shel asked 5/4, 2014 at 16:45

1

Solved

I have the following: (ns commentz.client (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true] [clojure.browser.repl])) (def app-state (atom {:id "a" :valu...
Infiltration asked 28/3, 2014 at 23:10
1

© 2022 - 2024 — McMap. All rights reserved.