shouldn't this work? from clojurescript
(tap> (with-meta
(ddiff/diff {:a 1} {:a 2})
{:portal.viewer/default :portal.viewer/diff}))
opens the inspector viewer with no way of choosing the diff viewer
relevant parts of shadow-cljs.edn
{:builds
{:my-build
{:target :browser,
,,,
:build-hooks [(portal.shadow.remote/hook {:port 12345})]
:devtools {:preloads [cljs.user]}
,,,}}}
cljs.user
(ns cljs.user
(:require [portal.web :as p]
[portal.ui.viewer.diff]))
(add-tap p/submit)I can highlight two values and run the lambdaisland.deep-diff2/diff-impl/diff command
lambdaisland.deep-diff2 is already included in the client so you just need to set the viewer.
(tap> (with-meta
[{:a 1} {:a 2}]
{:portal.viewer/default :portal.viewer/diff}))as expected; I was holding it wrong. Thanks! 😄
I have a html view that is not showing the full height of portal tab. (and has it’s own scrollbar) is there a way to make this full height?
Also i am doing below to navigate past the meta parent container an only show this html. Is this the way? (seems like some ceremony to render only the value I’m inspecting)
(p/clear)
(-> [myhiccup ctx]
(portal-hiccup) ;; hiccup-> portal.viewer/html with embedded