This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-11
Channels
- # beginners (57)
- # boot (9)
- # clara (9)
- # cljs-dev (12)
- # clojure (98)
- # clojure-boston (1)
- # clojure-dusseldorf (12)
- # clojure-france (1)
- # clojure-greece (1)
- # clojure-spec (41)
- # clojure-uk (86)
- # clojurescript (60)
- # code-art (2)
- # data-science (5)
- # datomic (5)
- # duct (1)
- # fulcro (14)
- # graphql (2)
- # lein-figwheel (4)
- # luminus (1)
- # midje (1)
- # off-topic (19)
- # om (10)
- # onyx (13)
- # pedestal (5)
- # portkey (59)
- # re-frame (31)
- # reagent (1)
- # ring (14)
- # ring-swagger (1)
- # rum (5)
- # shadow-cljs (90)
- # spacemacs (5)
- # specter (47)
- # sql (9)
- # uncomplicate (95)
- # vim (32)
@roklenarcic Ah, yes, that’s the other place.Rendering a component with nil props. The mount code tries to add it to the index.
right, on the form stuff. Basically you’ll want to init the form (entity), then put the ident pointing to it in the right place in app state
Assuming you don’t have recursive entities that need to be initialized, build-form
will work for you.
of course, composition with (swap! state (fn [s] (-> s (init-form FormClass [:entity-table id]) (assoc-in [:person-editor :singleton :person] [:entity-table id]))))
@tony.kay thanks for the suggestion. What am I giving away with that? How do we keep the URL -> SSR -> SEO chain if I want Google to index GET /posts/32 etc.?
Tony the issue is that ModalRouter calls render of whatever modal is the default route despite it not being shown, so I've ended up adding a dummy component to the router to prevent renders being called on a modal when the app loads.
@tony.kay Thanks for the extended answer 🙂 I’m certainly aware that things change much in the web sphere which is something that i partly like but also fear. You made your point though 🙂 I would say its good enough for me if fulcro is as stable as you say, ongoing use of it when there are no or almost no bugs is something I wouldn’t mind. As for maintenance, i guess if i would feel the need and i’d have success with what i do, paying you would probably be an option 😉 Thanks a lot for your effort on fulcro anyway, it looks like a great piece! I did not yet test it so thoroughly but i sure will.
@clojure388 Nothing. Just make sure you’re server is set for SSR (as in template) without requiring login for that route
The interesting thing about forms is that entity is modified as I type in input box, with initial state being held under a special key. Not sure why that design and not the other way around (editing forms modifying state hidden under a special key).