Skip to content

Commit

Permalink
docs(reactive): correct typos (#3532)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwei1025 committed Nov 11, 2022
1 parent 74f34e3 commit 41d1720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/reactive/docs/guide/concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ We mainly use the following APIs to create observable objects in @formily/reacti

## Reaction

In the reactive programming model, reaction is equivalent to the subscriber of the subscribeable object. It receives a tracker function. When this function is executed, if there is a **read operation* on an attribute in the observable object inside the function. * (Dependency collection), then the current reaction will be bound to the attribute (dependency tracking), knowing that the attribute has a **write operation\*\* in other places, it will trigger the tracker function to repeat execution, using a picture Means:
In the reactive programming model, reaction is equivalent to the subscriber of the subscribeable object. It receives a tracker function. When this function is executed, if there is a **read operation* on an attribute in the observable object inside the function. * (Dependency collection), then the current reaction will be bound to the attribute (dependency tracking), until the attribute has a **write operation\*\* in other places, it will trigger the tracker function to repeat execution, using a picture Means:

![](https://img.alicdn.com/imgextra/i4/O1CN01DQMGUL22mFICDsKfY_!!6000000007162-2-tps-1234-614.png)

Expand Down
2 changes: 1 addition & 1 deletion packages/reactive/docs/guide/concept.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ observable 是响应式编程模型中最重要的一块,它的核心概念就

## Reaction

reaction 在响应式编程模型中,它就相当于是可订阅对象的订阅者,它接收一个 tracker 函数,这个函数在执行的时候,如果函数内部有对 observable 对象中的某个属性进行**读操作**(依赖收集),那当前 reaction 就会与该属性进行一个绑定(依赖追踪),知道该属性在其他地方发生了**写操作**,就会触发 tracker 函数重复执行,用一张图表示:
reaction 在响应式编程模型中,它就相当于是可订阅对象的订阅者,它接收一个 tracker 函数,这个函数在执行的时候,如果函数内部有对 observable 对象中的某个属性进行**读操作**(依赖收集),那当前 reaction 就会与该属性进行一个绑定(依赖追踪),直到该属性在其他地方发生了**写操作**,就会触发 tracker 函数重复执行,用一张图表示:

![](https://img.alicdn.com/imgextra/i4/O1CN01DQMGUL22mFICDsKfY_!!6000000007162-2-tps-1234-614.png)

Expand Down

0 comments on commit 41d1720

Please sign in to comment.