Clojurians
#cljsrn
<
2015-12-04
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

gphilipp07:12:48

I’m close to get it working with Navigator.

gphilipp08:12:23

It’s weird, I navigate to the same screen again and again. The title is updated though. It seems the new scene function set to renderScene isn’t taken into account.

(.push navigator
               (clj->js {:title  (:account/name account)
                         :index 1
                         :renderScene (fn [route navigator]
                                          (account-detail account))}))

gphilipp08:12:01

(This code is called when I tap on a line of the TableView)

gphilipp08:12:21

and account-detail is created via om/factory

gphilipp08:12:20

oh, I think it becomes clearer. There’s only one renderScene, and you have to cond on the route name to determine what component you have to render...

gphilipp08:12:00

It works, yay !

gphilipp08:12:11

This post helped me a lot to understand how it works: http://stackoverflow.com/a/30909046/50114