Skip to content

Commit

Permalink
Fix reagent structure for in-text evals not to trigger re-rendering
Browse files Browse the repository at this point in the history
Evaluating the inspect function on edamame read instead of having to 
deal with ifns seems to make Reagent happier.
  • Loading branch information
zampino committed Mar 29, 2022
1 parent b8b56d4 commit fe1e9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/viewer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@

(defn inspect-leafs [opts x]
(if (wrapped-value? x)
[(->viewer-fn 'v/inspect) (describe x opts)]
[(->viewer-eval 'v/inspect) (describe x opts)]
x))

(defn fetch-all [opts xs]
Expand Down

0 comments on commit fe1e9a6

Please sign in to comment.