Fork me on GitHub
#re-frame
<
2018-03-09
>
danielcompton04:03:13

New code tracing feature coming soon to re-frame-10x:

mikethompson04:03:48

Daniel is tracing the code in a (not entirely sensible) event handler which is shown at the top:

(-> todos 
    (update-in ..... )
    identity)
And below that you are seeing each "form" within that code, and the value it produced when it executed. So that's a trace of the actual clojure code execution, form by form. Marvel at the way a macro like -> is handled.

mikethompson04:03:39

But, shhh. Its a secret. I can't believe Daniel blabbed :-)

nakiya09:03:49

Following this guide (https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md) for integrating a chartjs chart. I get this error on browser and neither “inner” nor “outer” component runs when subscription should update:

Uncaught Error: Objects are not valid as a React child (found: object with keys {props, context, refs, updater, state, _reactInternalInstance, cljsMountOrder, cljsIsDirty, reagentRender, cljsRatom, __isMounted}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of `device-detail`.

nakiya09:03:34

Where should I look at?

nakiya09:03:24

@joelsanchez: Had made a stupid mistake, figured it out.