This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-15
Channels
- # aleph (9)
- # announcements (6)
- # beginners (42)
- # calva (4)
- # cider (9)
- # clara (2)
- # clj-kondo (1)
- # cljdoc (108)
- # cljs-dev (10)
- # clojure (25)
- # clojure-brasil (1)
- # clojure-chicago (1)
- # clojure-europe (4)
- # clojure-italy (42)
- # clojure-nl (14)
- # clojure-uk (66)
- # clojurebridge (3)
- # clojurescript (23)
- # clojutre (2)
- # community-development (1)
- # cursive (2)
- # datomic (4)
- # figwheel-main (21)
- # fulcro (23)
- # jobs-discuss (1)
- # kaocha (1)
- # off-topic (10)
- # pedestal (4)
- # reitit (2)
- # shadow-cljs (41)
- # spacemacs (7)
- # sql (20)
- # xtdb (3)
where is :root-render
in fulcro3 ?
https://github.com/wilkerlucio/multi-timer/blob/master/src/com/wsscode/multi_timer/core.cljs#L54
@souenzzo you asking about ability to plug alternate rendering? That’s not completely fleshed out, but you can currently do it using the :optimized-render
app option.
I still need to give hooks for overriding which react functions are used for core functions.
@souenzzo I added options to the application that should work now: :render-root!
, :hydrate-root!
, and also added :hydrate?
option to mount to indicate you want to hydrate a SSR page.
Has anyone built a UI state machine in fulcro? Im not doubting it possible (or easy, the fuclro book explains how it would work fairly well), i would just like to see an example 🙂 particularly with something like state charts.
https://github.com/fulcro-legacy/fulcro-incubator/blob/develop/state-machine-docs.adoc @drewverlee
@drewverlee The new dynamic router uses them, the template has a login one.
and of course you can use xstate if you want full state charts…you just have to do a little js adapting. UISM is more just finite sm, but integrated nicely with Fulcro’s other features.
https://github.com/fulcrologic/fulcro3/blob/develop/src/main/com/fulcrologic/fulcro/routing/dynamic_routing.cljc#L242 https://github.com/fulcrologic/fulcro3-template/blob/master/src/main/app/model/session.cljs#L48
The session one in template starts on app start: https://github.com/fulcrologic/fulcro3-template/blob/master/src/main/app/client.cljs#L25
@tony.kay The upload remote is identical to the example, I removed the :serial? entry to just use the default and nothing looks to be setting parallel loads. I am uploading to localhost and throttling my network connection to be able to test with smaller files. Disabling the throttling and using large files doesn't seem to make a difference, perhaps localhost does for some reason?
There could have been a regression since I wrote the example. I’m not sure who’s been using file uploads and of those, who is supporting aborts. I coded another project recently (that is not currently in use) that was using it, and it was working.
It’s a deps-based project. you could clone fulcro, set your deps to point to local root, and add logging statements to the various spots and see what is going on…that’s the best I can do
The application ns abort proxies out to the abort method in the http remote, which in turn tracks xhrio objects by abort id. So, it is just cancelling the xhrio request, which in turn should cause a abort event that should reoprt through the stack
Hm. I can verify: my code abort seems to not be working either 😕 Could have gotten broken back when we added more network activity monitoring.
Thanks for looking into this! Would further investigation be helpful or is waiting until v3 is out probably the best bet? We're planning on moving to v3 when it's out of incubator.
If you find the issue I’ll fix it, but otherwise all of my time is on v3 at the moment.