Fork me on GitHub
#re-frame
<
2021-12-20
>
popeye10:12:04

#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

popeye10:12:40

I saw that, but everything going above my head! do I need to understand subscriptions in REACT js or any other frontend tech?

lassemaatta10:12:41

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

lassemaatta10:12:50

perhaps not the best analogy :man-shrugging:

popeye11:12:20

will read it

manutter5112:12:09

See also my responses to your question in #beginners

superstructor20:12:43

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.

🎉 1
😀 1