Fork me on GitHub

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


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


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.