Fork me on GitHub
#untangled
<
2017-03-30
>
thinhptran07:03:41

Hi all, I currently using Om.Next to render my Highchart. It works but it looks ugly so I would like to know if anyone has a better way for it.

thinhptran08:03:11

I have to store the highchart in an appstate

thinhptran10:03:12

solved it: ;;; Highchart (defui MyLocalChart Object (render [this] (let [{:keys [tableconfig]} (om/props this) my-chart-config (utils/gen-chart-config-handson tableconfig)] (dom/div #js {:style {:height "100%" :width "100%" :position "relative"} :ref (fn [mydiv] (if (some? mydiv) (js/Highcharts.Chart. mydiv (clj->js @my-chart-config))))}))))

claudiu19:03:41

Hi, fallowed untangled in the large video. Got html5 routing working except for the initial entry point.

claudiu19:03:06

ex: /login will show :main although the state is :login and on figwheel reload it changes and shows the login html.

claudiu19:03:24

:started-callback (fn [{:keys [reconciler]}]
                        (reset! r/history (pushy/pushy
                                            (partial r/set-route! reconciler)
                                            (partial bidi/match-route r/routes)))
                        (pushy/start! @r/history)))))

claudiu19:03:41

anyone have any idea what I should do ?