Fork me on GitHub
#re-frame
<
2017-09-16
>
jeaye06:09:49

I'm getting super stoked about https://github.com/Day8/re-frame-trace but I don't see how to use it with React Native. When it says "press Ctrl+H" where is it referring?

danielcompton07:09:15

heh, never considered it in the context of react native

danielcompton07:09:31

What would make sense for react native? I've never used it. What do other debugging tools do?

danielneal10:09:42

Refrisk has a remote mode which starts a server and browser window so you can do the inspection in

danielneal10:09:04

Something like this works well with react native

piotrek13:09:08

Hi! Is it possible to use DaveWM/reagent-material-ui with re-frame? I have added it as a dependency and I tried to define a simple view:

(ns myapp.views
  (:require [re-frame.core :as re-frame]
            [reagent-material-ui.core :as ui]))

(defn color [nme] (aget ui/colors nme))

(defonce theme-defaults {:muiTheme (ui/getMuiTheme
                                     (-> ui/darkBaseTheme
                                         (js->clj :keywordize-keys true)
                                         (update :palette merge {:primary1Color (color "amber500")
                                                                 :primary2Color (color "amber700")})
                                         clj->js))})

(defn main-panel []
  (fn []
    [ui/MuiThemeProvider theme-defaults
     [:div
      [ui/AppBar {:title "Hi"}]]])))
but I am getting following error in the browser console:
base.js:1357 Uncaught Error: Undefined nameToPath for react_dom
    at visitNode (base.js:1357)
    at visitNode (base.js:1355)
    at visitNode (base.js:1355)
    at visitNode (base.js:1355)
    at Object.goog.writeScripts_ (base.js:1369)
    at Object.goog.require (base.js:706)
    at (index):11
Any idea why?

piotrek14:09:02

In fact just requiring reagent-material-ui.core causes the error

piotrek15:09:41

Doh, it was an issue with react dependencies - I didn’t specify them explicitly and an old ones for react and react-dom were on classpath that provides only for cljsjs.react and cljsjs.react-dom but not for react and react-dom

leontalbot19:09:30

Hello guys! How can I change the name of the compiled output file? js/compiled/app.js

leontalbot19:09:37

in project.clj