This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-01
Channels
- # announcements (3)
- # aws (1)
- # babashka (56)
- # beginners (42)
- # calva (9)
- # cider (6)
- # circleci (5)
- # clj-kondo (17)
- # cljs-experience (1)
- # cljsjs (2)
- # clojure (106)
- # clojure-australia (1)
- # clojure-europe (36)
- # clojure-germany (5)
- # clojure-italy (13)
- # clojure-nl (14)
- # clojure-spec (19)
- # clojure-uk (27)
- # clojurescript (27)
- # cursive (20)
- # datomic (24)
- # events (2)
- # fulcro (11)
- # graalvm (1)
- # jobs (6)
- # lsp (6)
- # malli (5)
- # meander (36)
- # membrane (17)
- # nbb (4)
- # nextjournal (86)
- # off-topic (18)
- # pathom (3)
- # polylith (5)
- # portal (14)
- # rdf (5)
- # re-frame (5)
- # releases (6)
- # remote-jobs (3)
- # reveal (2)
- # ring (6)
- # shadow-cljs (139)
- # tools-deps (61)
- # vim (10)
- # xtdb (6)
I am trying to add datafy/nav to objects I am passing to portal so I can navigate links. But what I get is, I drill down into my map until I get to the map what has the reference I want to follow, but once I get to that map, portal doesn't let me call nav on it, but I can see in the metadata that it has datafy and nav functions on the map
it will let me call datafy, which is just identity with some logging, and I can see it being called
https://github.com/djblue/portal/blob/master/src/examples/hacker_news.cljc is the example I use to test nav integration
and even on objects where portal does allow me to call nav, I never see the logging I have for the nav impl printing
sort of, when I attach the metadata it most go all weird, I think that must be it, I attached the metadata everywhere with the idea that if it does see references it doesn't do anything, but I think I am screwing with portal's navigation when I do that
I just don't see any evidence that call nav from the portal ui ever invokes the nav I defined
Hah, got it, my nav implementation was wrong, throwing an exception somewhere inside portal when it was called, and there is no evidence of that anywhere
Yeah, I don't think portal does a great job of reporting exceptions currently. Something to fix in the future. Glad it works!