This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-14
Channels
- # announcements (9)
- # beginners (49)
- # calva (26)
- # cider (6)
- # clj-kondo (17)
- # cljsjs (1)
- # cljsrn (2)
- # clojure (72)
- # clojure-europe (5)
- # clojure-france (8)
- # clojure-greece (1)
- # clojure-italy (5)
- # clojure-nl (9)
- # clojure-spec (49)
- # clojure-uk (17)
- # clojuredesign-podcast (13)
- # clojurescript (137)
- # cursive (15)
- # data-science (1)
- # datomic (55)
- # duct (2)
- # emacs (5)
- # figwheel-main (11)
- # fulcro (11)
- # graphql (1)
- # hoplon (1)
- # instaparse (1)
- # jobs (12)
- # jobs-rus (1)
- # leiningen (1)
- # nrepl (34)
- # nyc (2)
- # off-topic (1)
- # onyx (1)
- # pedestal (1)
- # re-frame (6)
- # reitit (3)
- # remote-jobs (1)
- # shadow-cljs (196)
- # sim-testing (1)
- # spacemacs (9)
- # sql (1)
- # vim (70)
- # xtdb (31)
måning
anyone here used google firestore/google cloud functions
trying to figure out why my onWrite function doesn’t seem to be getting called
@danieleneal I've been looking at the platform for a bit of a toy project, but honestly still stuck trying to put together a sane project structure / build environment. Javascript land is just terrible. Shadow-cljs helps a lot, but only in helping it to suck marginally less. This is not remotely helpful, but ranting on slack is kind of my thing so... 🙂
it’s ok got it sorted now - was using the wrong api in the function export, which meant it was creating the function quite happily, but the trigger never got called
I needed
exports.pruneStatements= functions
.firestore
.document('/support/{supportId}')
.onWrite((change, context) => { }
haha, just the cloud function bit, didn’t seem worth getting the whole cljs machinery up yet 🙂
Yeah, i've also been doing a bit of that. I kid but I actually contemplated doing the whole thing in JS myself as a means to avoid any complicated build steps, just code and push... but I forgot about JSX for react and since that requires me to have some kind of compliation / transpilation process anyway, figured I might as well get a clojurescript one working. It's just that, for the most part, the way firebase wants to do things is not the way shadow-cljs wants to do things etc etc. Also, I am the kind of guy who will spend so long figuring out a really nice build and development environment that when I finally crack it, I am bored with the project 🙂