This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-11
Channels
- # announcements (1)
- # aws (5)
- # beginners (8)
- # biff (7)
- # calva (32)
- # cider (26)
- # clj-kondo (6)
- # clojure (100)
- # clojure-europe (6)
- # clojure-greece (1)
- # clojurescript (15)
- # core-logic (3)
- # fulcro (2)
- # honeysql (4)
- # hoplon (39)
- # hyperfiddle (11)
- # lsp (12)
- # other-languages (2)
- # podcasts-discuss (1)
- # squint (30)
I want to define a :version/current
for the app (current version) and have an (e/watch
on the db ref and have it auto reload the page when the version shifts, i reckon this is doable with e/watch
on a db call but i'm having trouble getting it to work
electric bundles functionality to refresh on new build deployed, are you looking for something different than that?
i want to trigger a javascript location.reload when i update a version number manually
to be clear, it already reloads in prod (not in dev) when the source code changes, will the database version ever change when source code didn’t?
and, to answer your question, the version will only change when code changes (-- the option to force reloads only necessary if auto-reload not a thing, since some clients hold onto stale .js asset)
you want hot code reloading in prod?
i think dev builds are already reloading changed JS for all connected clients every time something changes. However expect many glitches related to caching. Perhaps you are experiencing one