Skip to content

Commit

Permalink
update: readme of npm run dev:lanes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhaitao committed Aug 7, 2020
1 parent b691b53 commit 74231bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm run dev:16.12.0
* 查看Lanes优先级模型的效果(除react、react-dom之外,其他包例如 scheduler、react-reconciler等引入自master分支的代码)

由于Lanes还未正式发布,master分支代码虽然开启concurrent模式之后优先级用的就是lanes,但它只是将expirationTime替换成了lanes去实现,
效果并无变化,真正的效果可以使用下边命令预览
效果并无变化,真正的效果可以使用下边命令预览,启动命令之前需要将config/env.js 中的__PROFILE__环境变量置为true
```
npm run dev:lanes
```
Expand Down
2 changes: 1 addition & 1 deletion config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function getClientEnvironment(publicUrl) {

"__DEV__": false,

"__PROFILE__": false,
"__PROFILE__": true,

"__EXPERIMENTAL__": true,

Expand Down

0 comments on commit 74231bc

Please sign in to comment.