refactored sections
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Ribica front office
|
||||
|
||||
Front end shop-a (javascript)
|
||||
Front end of the shop (javascript)
|
||||
|
||||
All the code is in the ``app`` folder. This structure will evolve over time.
|
||||
|
||||
@@ -12,3 +12,11 @@ All the code is in the ``app`` folder. This structure will evolve over time.
|
||||
|
||||
Visit ``http://localhost:3001/index.html``
|
||||
|
||||
# Few flux guidelines
|
||||
|
||||
* State is always stored in the store and only synced with component as near to the top as it makes locigal sense
|
||||
* Stores are read only - they don't allow state changes directly but implement listeners that change state when dispacher tells them
|
||||
* Stores inform components about changes in state through change event
|
||||
* Stores fetch models - components never do this but get them from the props in most cases, or from the state in some cases (top components)
|
||||
* Navigation goes through navigation store and only navigation store accesses the router
|
||||
|
||||
|
||||
Reference in New Issue
Block a user