This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-01
Channels
- # aws (2)
- # aws-lambda (18)
- # beginners (68)
- # boot (6)
- # cider (2)
- # clara (2)
- # clojars (27)
- # clojure (68)
- # clojure-austin (5)
- # clojure-berlin (6)
- # clojure-dev (28)
- # clojure-greece (7)
- # clojure-italy (46)
- # clojure-japan (3)
- # clojure-nl (1)
- # clojure-russia (8)
- # clojure-sg (1)
- # clojure-spec (17)
- # clojure-uk (86)
- # clojurescript (82)
- # community-development (2)
- # cursive (18)
- # datomic (11)
- # duct (5)
- # fulcro (254)
- # garden (2)
- # graphql (6)
- # hoplon (19)
- # instaparse (4)
- # kekkonen (2)
- # leiningen (4)
- # luminus (3)
- # lumo (9)
- # off-topic (28)
- # om (7)
- # onyx (38)
- # other-languages (27)
- # portkey (7)
- # protorepl (1)
- # re-frame (56)
- # reagent (64)
- # ring (14)
- # ring-swagger (7)
- # shadow-cljs (255)
- # sql (2)
- # vim (11)
- # yada (10)
Can Javelin do server side rendering? I'm wanting to have some cell= cells to send updated fields back to the server (no matter where they're updated from), though I don't want them running when the app first starts. They should only be run on subsequent updates.
@dm3 Does Javelin not already run on JVM as well? I thought it did, though I wasn't sure how to get that state into the rendered cells.
At the moment this seems to work, though I'm not sure if it's really acceptible:
(defmacro change= [form]
`(let [run# (volatile! false)]
(j/cell= (if @run#
~form
(vreset! run true)))))
(change= (println "cell changed" cell))
Plus it required the client to recalculate the cell.
Does it make sense to use it in this way?
I'm not sure. It doesn't feel quite right. I haven't done this spreadsheet type of stuff before. 🤷
Worth a shot I guess. Thanks
@ghopper It does not feel right only because you are pushing the envelope having cleverly worked out that formulas can benefit from a bit of state in certain edge cases. I myself happen today to be working on a formula that returns the delta of consecutive values, and have also done formula that do not return a new value until a threshhold delta is reached. Yes, we are stealing RxJS’s lunch.