This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-14
Channels
- # ai (3)
- # babashka (45)
- # beginners (81)
- # biff (26)
- # calva (10)
- # cider (5)
- # clj-kondo (55)
- # cljfx (6)
- # clojure (125)
- # clojure-berlin (1)
- # clojure-europe (37)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-norway (79)
- # clojure-uk (1)
- # clojurescript (63)
- # clojutre (1)
- # conjure (5)
- # cursive (37)
- # data-science (1)
- # datalevin (4)
- # datomic (28)
- # eastwood (6)
- # fulcro (26)
- # graphql (20)
- # honeysql (6)
- # humbleui (4)
- # jobs-discuss (5)
- # kaocha (1)
- # leiningen (8)
- # missionary (5)
- # nbb (4)
- # observability (3)
- # off-topic (7)
- # pathom (8)
- # podcasts-discuss (1)
- # rewrite-clj (18)
- # ring (6)
- # sci (23)
- # scittle (9)
- # shadow-cljs (49)
- # squint (10)
- # testing (11)
- # xtdb (17)
Hello, is there a way in fulcro-rad to bind the route to the component being displayed, such as, eg, when the user navigates to http://localhost/blog , they see the blog and not the landing page?
https://fulcro-community.github.io/guides/tutorial-advanced-minimalist-fulcro/#_routing combined with url routing or DIY routing with html history
Thank you!
@tony.kay I have discovered that it is mark-missing-impl
that causes list values to be ignored and regarded instead as missing, namely the conditions at the beginning and and of this highlight https://github.com/fulcrologic/fulcro/blob/develop/src/main/com/fulcrologic/fulcro/algorithms/merge.cljc#L130-L140 only taking into account the case of vector?
and not of list?
Could it be changed? Or is it too scary, with possible unintended consequences in a critical algorithm?
ok, so we know it is a join (the query tells us that). The only possible values in the denormalized tree there is therefore a map (to one) or a vector of maps. Lists are technically “ok” data for a scalar (as are sets and anything else that you can encode on the wire). We are detecting that it is a join, and so I do agree with you that changing vector? to sequential? should probably be ok.
it’ll end up converting it to a vector in that case, and lists there are currently not working in any useful way, so I guess I’d accept it.
https://github.com/fulcrologic/fulcro/pull/519 @U013CFKNP2R @U6VPZS1EK would you be interested in trying to run 👈 in your applications to have a real-world smoke test checking that this change does not break something crucial?
Thanks Jakub. Very happy to try although my application very small.I'll see if it is possible to fetch your PR as a repo so I can use locally.
It was trivial to clone the repo containing the PR so I will try it now.
It all seems to be working, but of course, I have since switched my server implementation to return vectors... so will have to spend a bit of time undo'ing those changes and checking it works 🙂
Ok just did a search and replace across project and turned all resolvers containing vec and mapv into resolvers returning lists and your change has worked. I then switched back to Fulcro 3.5.24 and double checked that returning the joins as lists does not work.
Thank you! BTW with deps it should be simple to add the PR as a git dependency over original fulcro without cloning, by I don't know the right incantation 😅
I guess st. like
com.fulcrologic/fulcro {:git/url ""
:sha "4b454ce796884c11c2572248bbdfd654ce653e47"}
I just cloned locally and used :local/root in my deps.edn
But you're right - I should have thought about just specifying the SHA.
Exciting, @U0522TWDA — I’ll give it a try tonight! Thank you, as I think this is a fantastic change that will make working with resolvers more forgiving of an apparently somewhat common error!
that isn’t exhaustive either:
(list? (cons 1 (list)))
=> false
(list? (map identity [1 2 3]))
=> false
True but you won't be getting those from Transit
What about a remote that isn’t using transit? Such as one doing local loopback things synchronously, where the result of the resolver might direcly be placed in the result? It isn’t all networking, remember, it’s all generalized.
Once again you see far more than I do 😅
I understand that
I tried (om.fulcrologic.fulcro.inspect.inspect-client/install {})
but nothing happens
In com.fulcrologic.fulcro.inspect.inspect-client
, what is the difference between install
and app-started!
Why is it that in the https://github.com/fulcrologic/fulcro-template, the app-started!
was never called, but the app works fine with inspector?