Fork me on GitHub

Hi @tony.kay. The situation I have is that I am trying to initialize local state transitively. I have a root node with children A, B, C and each them has a child associated with it. I am using only initial state and the children of A, B, C are initialized with data from their local state which is initialized in the Root node. Can this be causing a problem?


I don't know why this code doesn't work The FundRaisingItems class renders fine, but when you press the button, it does not execute the FundRaisiningItemDetail class. I cannot figure this out and I've searched everywhere. If someone can give me a pointer, I would greatly appreciate it!


Um…you’re trying to render something inside of an event handler? That makes no sense @hadilsabbagh18


You want the rendering to be inline, with state that shows/hides it


onClick (fn [_] (m/toggle! this :ui/show-detail?))


then use the prop (needs to be in the query) with a when or CSS classes on a div to show/hide the detail.


event handlers are event handlers…they have nothing to do with rendering ever


@tony.kay thank you very much!