This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-21
Channels
- # beginners (65)
- # boot (24)
- # cider (2)
- # clara (13)
- # cljs-dev (45)
- # clojure (48)
- # clojure-dusseldorf (2)
- # clojure-italy (69)
- # clojure-norway (1)
- # clojure-russia (5)
- # clojure-sanfrancisco (1)
- # clojure-spec (51)
- # clojure-uk (34)
- # clojurescript (312)
- # cursive (5)
- # datavis (1)
- # datomic (9)
- # duct (13)
- # editors (3)
- # emacs (2)
- # fulcro (11)
- # graphql (19)
- # hoplon (1)
- # immutant (2)
- # jobs (7)
- # jobs-discuss (38)
- # lein-figwheel (1)
- # luminus (6)
- # off-topic (2)
- # parinfer (10)
- # pedestal (1)
- # re-frame (9)
- # reagent (28)
- # reitit (1)
- # remote-jobs (12)
- # ring-swagger (26)
- # shadow-cljs (232)
- # slack-help (8)
- # tools-deps (29)
- # unrepl (29)
- # vim (10)
- # yada (31)
I've tried to use a ref function and set it on the state, which stops the constant re-rendering. But now it takes a new canvas element on each props update, that makes the "video feed" flash between frames. :componentDidUpdate
does not get called so I can't use ref with a 'simple-ref-id'.
I figured out this is to do with the component not having an ident. Got a well performing version now 🙂
Hi, loving Fulcro so far, but having difficulty with loading data from my server. Specifically, I want to do this:
1) on the frontend, transact on a button click, which calls a mutation, which creates a tempid and forwards the mutation to remote
2) on the backend create some “thing” in my db, and return a mapping for the tempid
3) on the frontend, use that newly returned tempid to load this newly created “thing”
I’m having issues with:
- where exactly should I do this load? It feels wrong doing some kind of componentDidUpdate
and checking whether the tempid is one I can use for a new load
- the “thing” I want to load isn’t really an entity, I won’t be displaying it, so can I do a load with a simple query rather than needing to defsc
something to have a query to give to the load fn.
Is there a section in the doc that covers this case?
Important to note that tempids should be generated from the UI and sent to mutations as parameters, since mutations get multiple passes.
React 16 works fine. There is a warning about SSR, which they’re changing, but it still works until 17 the way it is.
don't know about react v16 but shadow-cljs yes. it is even the default for the fulcro template.
Yes Fulcro supports react 16