Communication Mechanism

Page internal communication

  • Component internal communication
  • Inter-component communicationimage.png | left | 747x399

Self-First-Broadcast。The emitted Action will be processed first by its own Effect, otherwise it will be broadcast to other components and Redux.

We completed the communication between the components (parent to child, child to parent, brother, etc.) through a simple and intuitive dispatch.

Inter-page communication

  • Context.appBroadcast
    • Each page's PageStore receives an action which is handled independently.image.png | left | 691x519

Refresh Mechanism

数据刷新

  • Local data modification automatically triggers a shallow copy of the upper layer data and is transparent to the business code.image.png | left | 747x361

View refresh

  • When the state changes, the store flatly notifies all the components and the ShouldUpdate decide whether the view should be refreshedimage.png | left | 747x336