This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-31
Channels
- # aws (1)
- # beginners (70)
- # boot (12)
- # calva (45)
- # cider (45)
- # clara (1)
- # cljdoc (10)
- # cljs-dev (133)
- # clojure (315)
- # clojure-dev (2)
- # clojure-europe (2)
- # clojure-italy (16)
- # clojure-nl (1)
- # clojure-spec (23)
- # clojure-uk (19)
- # clojurescript (48)
- # cursive (11)
- # data-science (5)
- # datomic (18)
- # figwheel-main (3)
- # fulcro (18)
- # graphql (14)
- # jackdaw (1)
- # juxt (1)
- # kaocha (1)
- # off-topic (10)
- # other-languages (3)
- # pathom (2)
- # pedestal (7)
- # re-frame (23)
- # reagent (1)
- # reitit (4)
- # ring-swagger (12)
- # rum (4)
- # shadow-cljs (26)
- # specter (6)
- # speculative (12)
- # tools-deps (44)
- # vim (8)
- # yada (2)
Ah I was looking in the readme of the fulcro project and the template project, but not the locally created template. Thanks.
It appears that the incubator dynamic router is the preferred way for a client-only app that will use code-splitting and will load each route as it's needed? Each route will be pre-rendered and served as a static html + edn file. In the past I've done this by rendering for each route both an HTML w/ included state for the initial route, and a separate EDN file with just the data for client-side route changes. On a route change, I used set-query on the root query to add in the current route's query and data tree. It appears the dynamic router would be good for this?
So Fulcro’s dynamic queries should work correctly in all of those circumstances, which is what the new d.r. needs. BUT I think there are issues with SSR at the moment with that router because not all of the code it uses is cljc-capable. Be happy for some PRs that address that.
reporting back to say that I think the compressible-transact!
solved the memory issue I was having when pushing some data from websockets for longer periods of time.
I think this is a typo: ch-rech
-> ch-recv
.
https://github.com/fulcrologic/fulcro/blob/develop/src/main/fulcro/websockets.clj#L111
I'm trying to (df/load this :app/data [{(:users/all {:page 2}) (fp/get-query Users)}])
but load requires a component where I'm putting a query
How should I be doing this? I'm not sure how to add that {:page 2}
when using components.
I will try (df/load this :users/all Users {:params {:page 2}})
But if I have a query with "deeper" params, how do I handle?
params should work for you there, if you need a more complicated situation you may use :update-query
, its not so pretty but you can do whatever you want there