This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-23
Channels
- # announcements (12)
- # beginners (225)
- # calva (7)
- # cider (45)
- # clj-kondo (1)
- # cljdoc (1)
- # cljsrn (3)
- # clojure (112)
- # clojure-dev (45)
- # clojure-europe (6)
- # clojure-finland (2)
- # clojure-india (1)
- # clojure-nl (27)
- # clojure-spec (37)
- # clojure-uk (171)
- # clojurescript (39)
- # core-async (9)
- # cursive (22)
- # datascript (8)
- # datomic (50)
- # emacs (12)
- # figwheel-main (17)
- # fulcro (42)
- # garden (2)
- # hoplon (27)
- # jobs (4)
- # kaocha (8)
- # klipse (2)
- # luminus (2)
- # off-topic (9)
- # perun (33)
- # planck (2)
- # re-frame (9)
- # reagent (48)
- # reitit (5)
- # remote-jobs (1)
- # rum (2)
- # shadow-cljs (23)
- # slack-help (3)
- # spacemacs (18)
- # sql (7)
- # tools-deps (24)
- # unrepl (9)
- # vim (30)
@j1mr10rd4n I tried using fulcrologic/semantic-ui-wrapper and got babel compile errors. I added fulcrologic/semantic-ui-react-wrappers {:mvn/version "2.0.4"} to deps.edn and then have semantic-ui-react in my package.json ( yarn added that ) and i get >>
babel failed? {:resource-name "node_modules/semantic-ui-react/dist/es/lib/AutoControlledComponent.js"}
any ideas on how I can get semantic ui react working in current fulcro version ?
i have the same versions ( old ones 8.4.0 ) that you have in the semantic-ui-wrapper but maybe babel compiler used in current shadow / fulcro has changed and wont compile these anymore ?? me puzzled
hi @dansudol, can you try using semantic-ui-react-wrappers version 2.0.5-SNAPSHOT please, and see if you get the same problem… I’m using that in a current project with up-to-date fulcro/shadow
the dependency is
[fulcrologic/semantic-ui-react-wrappers-shadow "2.0.5-SNAPSHOT"]
got it
still get failure ..
i put cljsjs/semantic-ui-react {:mvn/version "0.87.1-0"}
in deps.edn as well
should i change that ? to 0.8.4 or ?? put in package.json ?
wait .. hold the phone .. i put wrong name on fulcrologic/semantic-ui-react-wrappers-shadow was using fulcrologic/semantic-ui-react-wrappers ( trying again )
ok .. it compiles now 🙂
but .. when i require "fulcrologic.semantic-ui.factories" [fulcrologic.semantic-ui.factories :as f] i get
The required namespace "fulcrologic.semantic-ui.factories" is not available,
[fulcrologic.semantic-ui.icons :as i] works though
my deps.edn has
fulcrologic/semantic-ui-react-wrappers-shadow {:mvn/version "2.0.5-SNAPSHOT"} cljsjs/semantic-ui-react {:mvn/version "0.87.1-0"}
if you’re using shadow, you can require the components individually - this can reduce the size of your compiled js output - have a look in https://github.com/fulcrologic/semantic-ui-wrapper/tree/develop/semantic-ui-wrappers-shadow/src/workspaces/fulcrologic/semantic_ui/workspaces for some examples
if you want to use the monolithic factories, you can depend on [fulcrologic/semantic-ui-react-wrappers "2.0.5-SNAPSHOT"]
instead and follow the examples in https://github.com/fulcrologic/semantic-ui-wrapper/tree/develop/semantic-ui-wrappers/src/cards/fulcrologic/semantic_ui/cards
you shouldn’t need to include the cljsjs/semantic-ui-react
dependency in`deps.edn`, it will be pulled in transitively
ok .. got it .. are you doing the monolith ?
in my current project i’m using the individual components
Is it a default behavior for Fulcro to create the app state for all idents for all components on initial load? Of course if you have initial values you have populated on app load, those should be there. But in my case my app-state has all idents populated (which could be empty because that page hasn’t been loaded). I’m trying to determine if this is something we setup, or is part of Fulcro
@njj You declare (and compose) initial state via :initial-state
on components. All Fulcro does is (tree->db root-query your-initial-state true)
and make thta the db.
you could literally do it with:
(reset! state-atom (tree->db (prim/get-query Root) (prim/get-initial-state Root) true))
(it also does a bit with unions, but it is essentially that)I’m trying to track down why my app locally, loads 3 times on initial load - was wondering if it has something to do w/ this
The startup is a lot clearer in F3's source…F2 was working around a lot of Om Next requirements. Here’s the new logic: https://github.com/fulcrologic/fulcro3/blob/develop/src/main/com/fulcrologic/fulcro/application.cljc#L136
Basically like the incubator version, but more extensible (Incubator version lets you define an ok-action
and error-action
on the mutation itself)
forgot to thank you @j1mr10rd4n from this morning for the help on semantic-ui .. i am using the snapshot for doing individual component imports ... the monolithic one did not work, ( same compile error as other one ) but I don't mind since I just fine doing individual require for each component