Fork me on GitHub

@bfast so you would be doing something like this:

(deftest my-test 

    ;;  mock it out
      (fn [val]  ))         ;;  maybe reset an atom in here, capturing val. Then later check it is correct

    (re-frame/dispatch [:something])
     ... ))


Has anyone had any insights on adding CSRF tokens to a re-frame application. Like what are the best practices, what to avoid, good blog posts about this.

Keith Harper11:01:57

He basically uses a placeholder in the home.html template and replaces the value with a valid CSRF token with a Ring middleware