Skip to content

fix: url 404 bug #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/reactivity/effect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

`effect` 作为 `reactive` 的核心,主要负责收集依赖,更新依赖

如果你还没看过 `reactive` , 建议点[这里](/reactivity/reactive)
如果你还没看过 `reactive` , 建议点[这里](/reactivity/reactive.html)

文档直通车: [https://vue3js.cn/vue-composition-api/#reactive](https://vue3js.cn/vue-composition-api/#reactive)

Expand Down Expand Up @@ -105,7 +105,7 @@ function cleanup(effect: ReactiveEffect) {
}
```

看到这里应该会有一个问题了?`effect` 是如何收集及触发依赖的呢?现在我们回想一下在[reactive](/reactivity/reactive)高频出现的两个函数
看到这里应该会有一个问题了?`effect` 是如何收集及触发依赖的呢?现在我们回想一下在[reactive](/reactivity/reactive.html)高频出现的两个函数

- track 收集依赖(get操作)
- trigger 触发依赖(触发更新后执行监听函数之前触发)
Expand Down