This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-19
Channels
- # adventofcode (5)
- # announcements (1)
- # babashka (44)
- # beginners (83)
- # biff (10)
- # calva (1)
- # cherry (3)
- # cider (10)
- # clojure (78)
- # clojure-europe (12)
- # clojure-norway (1)
- # conjure (1)
- # cryogen (1)
- # datascript (4)
- # dev-tooling (2)
- # gratitude (2)
- # lsp (4)
- # malli (6)
- # off-topic (15)
- # polylith (9)
- # quil (19)
- # releases (1)
- # sci (6)
- # scittle (64)
- # sql (10)
- # squint (35)
If I have some cljs code that uses an atom, What would be the best way to port it to squint? Would I need to use react, or some other js framework for atom (or lightweight reactive cell) semantics. What is the small bundle happy path, short of cherry?
here is a small example using solidjs: https://github.com/squint-cljs/squint/blob/main/examples/solidjs/src/App.cljs but react is pretty similar
Thanks for feedback! Summarizing: Use React or Solidjs for reactive state. Maybe just use promises for getting and setting local state in responsible way (async concerns). I didn’t realize vanilla js had atomic transactions (this is what I thought I needed atoms for for basic in-memory CRUD between functions) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics
Yes. Solid will give you a smaller bundle size I think but react is the popular option
I guess your question is ambiguous. "make squint work", you probably mean "build squint"?
@U0ETXRFEW @U04V15CAJ we can find a discussion place.
@URCRY0U87 not sure what find a discussion place means. But I think that if you try to solve an AOC puzzle with the template/tool linked here you will understand what the update is about.
@U0ETXRFEW apologies. As a non-native english, tried to express my intents.
I'll be updating the link in this section of the website if I make more changes, should you be interested: https://github.com/squint-cljs/squint#advent-of-code