This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-22
Channels
- # adventofcode (26)
- # aleph (34)
- # announcements (10)
- # babashka (71)
- # beginners (80)
- # biff (7)
- # calva (1)
- # cider (4)
- # cljdoc (12)
- # clojure (8)
- # clojure-belgium (1)
- # clojure-europe (11)
- # clojure-nl (3)
- # clojure-norway (18)
- # clojure-sg (3)
- # clojure-sweden (2)
- # clojurescript (18)
- # clojutre (4)
- # conjure (1)
- # core-logic (4)
- # datahike (1)
- # datascript (3)
- # emacs (27)
- # exercism (1)
- # gratitude (12)
- # introduce-yourself (4)
- # joyride (1)
- # lsp (46)
- # malli (3)
- # membrane (2)
- # nbb (1)
- # off-topic (3)
- # other-languages (7)
- # pedestal (4)
- # portal (3)
- # practicalli (1)
- # rdf (33)
- # re-frame (11)
- # releases (1)
- # ring (1)
- # scittle (34)
- # shadow-cljs (10)
- # squint (12)
- # tools-deps (89)
- # tree-sitter (2)
- # xtdb (14)
Possibly me being silly, but does squint support aliasing imports?
(:require ["package" :refer [foo] :rename {foo bar}])
Having trouble making that work
Trying to convert wmr's sample app to squint. Their entry point both imports prerender
(then aliases it to ssr
) and then exports a function of the same name
Small real-world example using sveltekit and squint. /login
and /register
works
squint
https://github.com/Dangercoder/svelte-cljs-example/blob/real-world/src/routes/login/%2Bpage.server.cljs
js
https://github.com/sveltejs/realworld/blob/master/src/routes/login/%2Bpage.server.js
I agree 😄, It’s amazing being able to mix js and cljs in a project and use high quality js libs from cljs.
think I could just use (Map.) and be able to use select-keys ☝️
Just a tip, you can do (:errors result)
instead of (.-errors result)
and (:email data)
instead of (.get data "email")
because using a keyword as a function is compiled into get
using a string as the key
don't even know if this is actually better, but it is at least less to type and looks less 'interopy' 😄
@U7KPK060K awesome tip :)