Skip to content

Commit

Permalink
fix: 🐞 add react scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
enson0131 committed Nov 22, 2024
1 parent 607c86c commit 85af443
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function sidebarGuide(): DefaultTheme.SidebarItem[] {
{ text: 'React 中的事件机制', link: 'React/React中的事件机制' },
{ text: 'React 中的异常机制', link: 'React/React中的异常机制' },
{ text: 'React 中的性能优化', link: 'React/React中的性能优化' },
{ text: 'Essential Knowledge for Schedule about React', link: 'React/Essential Knowledge for Schedule about React' },
]
},
// {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ function rafCallback(timestamp) {
window.requestAnimationFrame(rafCallback);
```

![Frame](./../../public/assets/react/9.png)

In the above example, the browser will block because control is returned to the browser only after the microtask is executed.


Expand Down

0 comments on commit 85af443

Please sign in to comment.