Re: Re-frame - on-click handler doesn't work, and I can't understand why not

2018-08-28 Thread 'Simon Brooke' via Clojure
Thanks, yes, that was part of the problem. The other part was failing to deref the atom. D'oh! On Tuesday, 28 August 2018 17:16:00 UTC+1, Matching Socks wrote: > > Did you intend to pass a function-that-returns-a-function instead of just > a function as the handler? Also, it is a bit odd (maybe

Re-frame - on-click handler doesn't work, and I can't understand why not

2018-08-28 Thread Matching Socks
Did you intend to pass a function-that-returns-a-function instead of just a function as the handler? Also, it is a bit odd (maybe it has to do with context you have not shown) to use the big-link component function with () as opposed to square brackets. -- You received this message because yo

Re-frame - on-click handler doesn't work, and I can't understand why not

2018-08-28 Thread 'Simon Brooke' via Clojure
Hi, I'm stuck... Consider this function : (defn big-link [text & {:keys [target handler]}] (js/console.log (str "Big link with target '" target "'; handler '" handler "'"))