-
-
Notifications
You must be signed in to change notification settings - Fork 715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decouple re-frame and reagent+core.async #107
Commits on Aug 16, 2015
-
decouple re-frame and reagent+core.async
This rewrite was motivated by day8#106. In essence re-frame provides a transducer: state, event -> state. This transducer is able to apply algorithmic transformations on series of events and build final state up. This allows complete decoupling of re-frame handlers, subscriptions and middlewares logic from mechanisms how events are queued, processed and how are their effects applied to app-db. This "bare re-frame" is implemented in frame.cljs. For maximal flexibility bare re-frame must be pure and have no special knowledge of app-db, reagent/ratom and core.async. It must be possible to create multiple independent instances of bare re-frame. For convenience scaffold.cljs is re-implementing original re-frame functionality of v0.4.1 using those new bare primitives. This is exposed as public api via core.cljs. App developer can opt-in using default implementation by requiring re-frame.core. In this scenario re-frame provides a single app-db which is reagent's ratom and runs single event loop where events are dispatched and processed via core.async channel. A single re-frame instance is created and kept in re-frame.core/app-frame atom. Plus developer gets access to the original imperative API to manipulate them. App developer is also free to pick/implement other means of employing bare re-frame by not requiring re-frame.core directly and to build own scaffold around bare re-frame primitives.
Configuration menu - View commit details
-
Copy full SHA for 0e182a2 - Browse repository at this point
Copy the full SHA 0e182a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a54eaf1 - Browse repository at this point
Copy the full SHA a54eaf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 200aef2 - Browse repository at this point
Copy the full SHA 200aef2View commit details
Commits on Aug 17, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 6bf1aba - Browse repository at this point
Copy the full SHA 6bf1abaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e9eefd - Browse repository at this point
Copy the full SHA 6e9eefdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b7f78b8 - Browse repository at this point
Copy the full SHA b7f78b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f4fcd6 - Browse repository at this point
Copy the full SHA 0f4fcd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ee36de - Browse repository at this point
Copy the full SHA 5ee36deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 329a57f - Browse repository at this point
Copy the full SHA 329a57fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b62e3ab - Browse repository at this point
Copy the full SHA b62e3abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 072ac10 - Browse repository at this point
Copy the full SHA 072ac10View commit details -
Configuration menu - View commit details
-
Copy full SHA for bae4df8 - Browse repository at this point
Copy the full SHA bae4df8View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd4602f - Browse repository at this point
Copy the full SHA bd4602fView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc0981a - Browse repository at this point
Copy the full SHA dc0981aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c05223f - Browse repository at this point
Copy the full SHA c05223fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2778d5a - Browse repository at this point
Copy the full SHA 2778d5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d72b79 - Browse repository at this point
Copy the full SHA 3d72b79View commit details -
Configuration menu - View commit details
-
Copy full SHA for addfb80 - Browse repository at this point
Copy the full SHA addfb80View commit details -
Configuration menu - View commit details
-
Copy full SHA for c09f3c6 - Browse repository at this point
Copy the full SHA c09f3c6View commit details -
properly override protocol on defrecord
thanks @nberger compiler was complaining and didn't overwrite existing protocol: WARNING: Protocol IPrintWithWriter implemented multiple times at line 35 src/re_frame/frame.cljs
Configuration menu - View commit details
-
Copy full SHA for 7a8156d - Browse repository at this point
Copy the full SHA 7a8156dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 568cdd3 - Browse repository at this point
Copy the full SHA 568cdd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 751ccfb - Browse repository at this point
Copy the full SHA 751ccfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for a56a6e7 - Browse repository at this point
Copy the full SHA a56a6e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 173e824 - Browse repository at this point
Copy the full SHA 173e824View commit details -
Configuration menu - View commit details
-
Copy full SHA for a52d360 - Browse repository at this point
Copy the full SHA a52d360View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4137a0d - Browse repository at this point
Copy the full SHA 4137a0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12e9b66 - Browse repository at this point
Copy the full SHA 12e9b66View commit details -
return pure handler for compatibility reasons
but issue a warning when used
Configuration menu - View commit details
-
Copy full SHA for 049285b - Browse repository at this point
Copy the full SHA 049285bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9f525d - Browse repository at this point
Copy the full SHA e9f525dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b31889 - Browse repository at this point
Copy the full SHA 9b31889View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f4be3c - Browse repository at this point
Copy the full SHA 5f4be3cView commit details -
various tweaks to increase reusability of scaffold code
lessons learned from plastic
Configuration menu - View commit details
-
Copy full SHA for 4a7873d - Browse repository at this point
Copy the full SHA 4a7873dView commit details -
move transduce-event(s)-by-resetting-atom to utils
and give it a better name
Configuration menu - View commit details
-
Copy full SHA for f393cc4 - Browse repository at this point
Copy the full SHA f393cc4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ff3204 - Browse repository at this point
Copy the full SHA 5ff3204View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14314dd - Browse repository at this point
Copy the full SHA 14314ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for e534e6a - Browse repository at this point
Copy the full SHA e534e6aView commit details
Commits on Aug 18, 2015
-
Configuration menu - View commit details
-
Copy full SHA for ff346a8 - Browse repository at this point
Copy the full SHA ff346a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f61e93 - Browse repository at this point
Copy the full SHA 8f61e93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 911ab0f - Browse repository at this point
Copy the full SHA 911ab0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for df66bf5 - Browse repository at this point
Copy the full SHA df66bf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 22e91e1 - Browse repository at this point
Copy the full SHA 22e91e1View commit details
Commits on Aug 19, 2015
-
Configuration menu - View commit details
-
Copy full SHA for dc82af6 - Browse repository at this point
Copy the full SHA dc82af6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad431f - Browse repository at this point
Copy the full SHA 6ad431fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 069b7cc - Browse repository at this point
Copy the full SHA 069b7ccView commit details