Skip to content

Commit

Permalink
Make inspect-presented go through invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Oct 19, 2024
1 parent 0be230b commit b11926b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nextjournal/clerk/render.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,9 @@
;; each view function must be called in its own 'functional component' so that it gets its own hook state.
^{:key hash}
[:> ErrorBoundary {:hash hash}
[(:f (:render-fn viewer)) value (merge opts
(:nextjournal/render-opts x)
{:viewer viewer :path path})]]))))
[(:render-fn viewer) value (merge opts
(:nextjournal/render-opts x)
{:viewer viewer :path path})]]))))

(defn inspect [value]
(r/with-let [!state (r/atom nil)
Expand Down

0 comments on commit b11926b

Please sign in to comment.