This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aleph (3)
- # beginners (98)
- # boot (24)
- # cljs-dev (13)
- # cljsrn (16)
- # clojure (97)
- # clojure-dusseldorf (2)
- # clojure-italy (2)
- # clojure-losangeles (2)
- # clojure-russia (48)
- # clojure-spec (28)
- # clojure-uk (79)
- # clojurescript (79)
- # community-development (2)
- # cursive (4)
- # datomic (35)
- # duct (1)
- # events (1)
- # fulcro (43)
- # heroku (1)
- # jobs (1)
- # lein-figwheel (2)
- # luminus (1)
- # lumo (12)
- # nyc (1)
- # off-topic (6)
- # om (1)
- # pedestal (7)
- # portkey (9)
- # proton (1)
- # re-frame (45)
- # reagent (27)
- # rum (2)
- # shadow-cljs (78)
- # spacemacs (3)
- # specter (2)
- # testing (2)
- # vim (41)
Hm I'm getting this warning
Subelements of union fulcro.ui.bootstrap3/NavItemUnion have initial state, but the union itself has no initial state. Your app state may suffer. and I have noticed that one of my idents isn't being honored/used.
which is weird as subelements of the
NavItemUnion don't have any inital state defined.
Does anyone have any tips on how to debug why ident declaration is being ignored (the ident fn is called, but the resulting tree doesn't have an entry for ident).
Excuse me, if I start a project by cloning fulcro-template, am I obliged to us the same copyright?
I would like to start from that template and try to merge and adapt my company code, which can’t be released with the same license.
@rastandy Don't know it helps, but there's also the fulcro-lein template that has a different license 🙂
is it possible to do server side rendering when using react ui libraries like semantic-ui-react from cljsjs?
@azeem I’m having trouble doing client side rendering with fulcro and semantic-ui-react
@azeem if its not a problem tha react will ignore and mount full app, you could just have a interface around the lib and generate the html with render conditionals
@claudiu so use render conditionals to render some kind of stubs for semantic-ui components on server side and then mount the real component only after you get to client side?
Something like (defn my-ui-button) for cljs it's semantic ui for clj you give it the html. A bit of a chore but thats what I will try for my project since I only need material inputs
@rastandy i've had pretty good success with semantic-ui from cljsjs in client. had to write some wrappers to fetch the components from the js variable.
@claudiu that makes sense.. if i use semantic-ui components extensively.. like Grid, Form etc. lot of the markup from the server will all be stubs. which would kind of defeat the point of having SSR wouldn't it?
@roklenarcic Did you solve that ident issue? The warning could possibly be wrong, I’d have to look. However, unions in general are a well-tested Om Next feature. So chances are you wrote something incorrectly. In general you want to union to have the ident function, but there are reasons to have ident on the children of the union as well (e.g. you merge state with load using only that child…it won’t know the ident).
The unions and idents aren't mine, they are generated by fulcro.bootstrap nav functionality.
@rastandy My intention (and understanding) with the MIT license is that you credit Fulcro, but from there can do whatever you want. My understanding of that is that you include the copyright notice of Fulcro in your project, but you can make your own proprietary (even closed source) derivatives from there. You’d have to contact a lawyer from there, but I can tell you that my intention is to be as open with it as possible while still maintaining visibility.
In any case, just using Fulcro exposes you to the MIT license because all cljs code you pull in as deps “infect” you with their license. You are using their source as part of your project. Well, and use of any of them typically does the same.
if anyone wanted to play more with it I can push my branch. I’m working on something else at the moment.
@tony.kay Thank you very much for your clarification, I was puzzled by the sentence: “The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
@tony.kay My non-lawyered mind would suggest that everything derived from that code must have the same permissions
@tony.kay that sounds interesting. glad to know there’s some hope.. would you mind sharing your code. i’d like to play around with it
@rastandy My understanding is that you just have to include the license as it applies the the external source you’re using. So, if you copied a file into your source, you’d want to add the MIT license as a comment to the top of that file.
@tony.kay I must run to take my train, but I’ll read carefully and try to understand that better. By the way, as always, thank you very much for your work, it’s very helpful!
@azeem Just pushed “nashorn” branch of fulcro-template.
1. client-main has been changed to define a function that should be able to render to a string (instead of mount)
2. server.clj has a
(comment) section where I was doing REPL runs to try it out. look for
So, just run something like
lein with-profile production cljsbuild auto production (MAKE SURE YOU USE THE PROFILE)
Then you should be able to start a clj REPL and hammer against it.
@azeem You might try playing with the client main in a browser first, just to see if the server render works there. Like in the dev console.
Got stuck trying to solve the Nashorn errors that seemed unrelated. It won’t even load the source, so I wasn’t worried if it ran right yet.
hello people, I'm happy to announce pathom beta-8 is released! this is a major release, now with a plugin support to enable parser extension, with the support pathom also provides some built-in plugins for: error catching, query profile and request caching. The documentation has been mostly re-writen, I hope it's cleaner and more to the point now. Pathom still growing and any feedback is very welcome, thanks 🙂 https://github.com/wilkerlucio/pathom/