Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.4 KB

mechanism.md

File metadata and controls

34 lines (19 loc) · 1.4 KB

Communication Mechanism

Page internal communication

  • Component internal communication
  • Inter-component communication

image.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 refreshed

image.png | left | 747x336