Questions tagged [om.next]

Om Next is the successor of the library .

From https://github.com/omcljs/om/wiki/Quick-Start-%28om.next%29 :

Om Next is a uniform yet extensible approach to building networked interactive applications. By providing a structured discipline over the management of application state, Om Next narrows the scope of incidental complexity often found in user interface development. The Om Next discipline is founded upon immutable data structures, declarative data specifications, and a simple convention for routing data access and mutations.

Om Next borrows ideas liberally from Facebook's Relay, Netflix's Falcor, and Cognitect's Datomic. If you are not familiar with these technologies, fear not, this tutorial makes few assumptions. You will be guided through all the core concepts of Om Next. This will prepare you for later tutorials that show custom storage integration and transparent synchronization between your UI and a remote service.

8 questions
5
votes
2 answers

Why does Om Next component not re-render when state changes?

This does not seem to be happening as the Quick Start tutorial says: In Om Next application state changes are managed by a reconciler. The reconciler accepts novelty, merges it into the application state, finds all affected components based on…
kevincasey
  • 249
  • 2
  • 12
3
votes
1 answer

om.next mutate of other-component state not causing other-component to re-render

I am updating state in one of my mutations, and a piece of it is not used by this component, but is by another one. When I do the mutate I see the that the app-state is updated in the repl, and if I cause the component to re-render for other…
snoonan
  • 160
  • 1
  • 5
3
votes
2 answers

query function returning value as nil in om.next

I am currently trying to learn om.next. This is the code that I have: (ns hlearn.core (:require [goog.dom :as gdom] [om.next :as om :refer-macros [defui]] [om.dom :as dom] [sablono.core :as html :refer-macros…
lhahn
  • 1,241
  • 2
  • 14
  • 40
1
vote
1 answer

How does data flow to component render functions in Om Next?

Does a components data have to be passed in from its parent component? Or does a components query allow the data to flow directly to the component? I can see how a query declares what data a component needs. Does a parent component have to inspect…
kevincasey
  • 249
  • 2
  • 12
1
vote
1 answer

Accessing om.next sub-component state

I'm just picking up om.next and have run into a situation where I've got some form inputs realized as components which hold on to local state, e.g. validation state, actual input value, etc--this state is updated and accessed via…
maxcountryman
  • 1,562
  • 1
  • 24
  • 51
1
vote
2 answers

om.next: how to have multiple components that use the reconciler

I'm new to om.next (and to clojurescript), and I have the following question. I can only get the root component to be invoked with the reconciler (i.e. have its query method invoked); every other component seems to need to be invoked with props and…
Robert Balicki
  • 1,583
  • 2
  • 16
  • 24
0
votes
0 answers

Secretary Routing, Ident Query in om.next

I will preface this question by saying I am still very much a novice when it comes to Clojure/Script, so besides the very pointed question I will pose any general feedback about style, usage would be greatly appreciated. I have been building a very…
Colin Teal
  • 1
  • 1
  • 2
0
votes
1 answer

Updating nested state in Om.next

I am having problems with updating state with data from input fields in Om.next. Reading state in Om.next is solved by queries and queries enable components to implement fetching state independent of context, which is great, as that means the…
RokL
  • 2,663
  • 3
  • 22
  • 26