Fork me on GitHub
#clojurescript
<
2020-09-22
>
telperion01:09:10

Random question. Are there any here who have any experience with cljs source targeting nodejs ? Working on a project that requires NodeJS, wondering if there are some opportunities to use clojurescript. Seems possible, but has anyone had any success doing it ?

Lone Ranger16:09:04

Yep, I write a lot of nodejs scripts. (although recently I use #babashka more). Message me or post here if you have any questions

ozzloy05:09:52

@cgdeboer there is a build option to target nodejs, yes

p-himik12:09:41

TIL history.pushState does not trigger the hashchange event. So if you want to navigate to a new page in your SPA and to also scroll to a particular anchor within that page, you will have to jump through some hoops. Got it working in Chrome with setTimeout + scrollIntoView. But of course that doesn't work in FF for some reason.