Update subscriptions codebase structure doc

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2019-05-01 13:04:59 +02:00
parent 428464df07
commit b44c86511e
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ Rationale:
These guidelines make db.cljs namespaces the place to go when making changes to the db layout and minimize breaking changes when adding/refactoring features
# Subscriptions
- all subscriptions must be defined in the single `status-im.subs` namespace
- subscriptions must subscribe only on other subscriptions, and never on app-db itself
- `reg-root-key-sub` should be used for the root keys subscriptions
# Events
- all events must be defined in the single `status-im.events` namespace which can be considered as an index of everything going on in the app