mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 23:38:11 +00:00
1.8 KiB
1.8 KiB
The re-frame API
A starting summary, in note form:
- the re-frame API is provided by the core.cljs namespace
- That namespace is fairly small, with only 5 to 10 functions in regular use.
- That namespace has occasional comments. You should read it from top to bottom.
- All often-used API functions have doc strings, linked-to below. (But there's currently no auto-generated API docs because of this problem)
Links To API docs
The core API is these functions:
- dispatch, dispatch-sync. See also this FAQ
- reg-event-db, reg-event-fx
- reg-sub
- subscribe
Occasionally, you'll also need to use:
- reg-fx XXX
- reg-cofx XXX and inject-cofx
And, finally, there are some builtin Interceptors which are used a bit:
Builtin effects: XXX
Builtin coeffects: XXX
Previous: First Code Walk-Through Up: Index Next: Mental Model Omnibus