This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-20
Channels
- # adventofcode (17)
- # announcements (1)
- # aws (1)
- # beginners (102)
- # calva (27)
- # cider (16)
- # clj-commons (34)
- # clj-kondo (33)
- # cljs-dev (5)
- # cljsrn (4)
- # clojure (124)
- # clojure-europe (17)
- # clojure-nl (8)
- # clojure-spec (13)
- # clojure-uk (6)
- # clojurescript (68)
- # datahike (21)
- # datomic (23)
- # emacs (3)
- # fulcro (30)
- # introduce-yourself (6)
- # jobs-discuss (6)
- # lsp (31)
- # nextjournal (3)
- # off-topic (1)
- # other-languages (45)
- # portal (4)
- # re-frame (8)
- # releases (4)
- # shadow-cljs (39)
- # specter (6)
- # tools-build (18)
- # tools-deps (11)
#crosspost i started learning reframe! and I am basically backend engineer, I wanted to understand what is subscribe in reframe ? why do we need it ? Can anyone help me please
have you looked at http://day8.github.io/re-frame/subscriptions/?
I saw that, but everything going above my head! do I need to understand subscriptions in REACT js or any other frontend tech?
I guess from a backend point of view you might compare subscriptions to • Imagine a some hypothetical SQL view(s), which select data from either directly from the database or through other similar SQL view(s) • These views are magical and are automatically re-calculated if the source data changes • You can query ("subscribe to") these SQL views in your UI components, such that the components are re-rendered whenever the output of the SQL view changes (because the data in the underlying db changed) • Among other things this allows you to build nice data processing pipelines where each SQL view extracts or transforms the data further so that the UI doesn't really need to know how the data was constructed
perhaps not the best analogy :man-shrugging:
See also my responses to your question in #beginners
1.3.0-rc1
has been released. The only significant change is syntactic sugar for trivial reg-sub
declarations. Please have a look at https://github.com/day8/re-frame/pull/634#issue-654467742, try it out and provide feedback via GitHub Issues so that any issues with this new feature can be resolved prior to a stable release.