Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticsoul committed Jan 6, 2024
1 parent fedfcee commit 06932b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/helux-core/src/types/base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1214,9 +1214,9 @@ export interface IInnerCreateOptions<T = SharedState> extends ICreateOptionsFull

export interface IUseSharedStateOptions<T = any> {
/**
* default: every ,设置为 first 或 no 可以进一步提高组件渲染性能,但需要注意
* first 时如果组件的依赖是变化的,会造成依赖丢失的情况产生,触发组件不会重渲染的bug
* no 时不会从ui渲染力收集到依赖,需 deps 函数补充依赖
* default: every ,设置为 first 或 no 可以进一步提高组件渲染性能,
* 但需要注意设为 first 时如果组件的依赖是变化的,会造成依赖丢失的情况产生,触发组件不会重渲染的 bug
* 设为 no 时不会从ui渲染里收集到依赖,需 deps 函数补充依赖
* ```txt
* no ,此时依赖仅靠 deps 提供
* first ,仅首轮渲染收集依赖,后续渲染流程不收集
Expand Down Expand Up @@ -1305,13 +1305,13 @@ export interface IUseSharedStateOptions<T = any> {
*
* ```ts
* arrDep=true arrIndexDep = true
* deps: list list[0] list[...]
* // deps: list list[0] list[...]
*
* arrDep=true arrIndexDep = false
* deps: list
* // deps: list
*
* arrDep=false
* deps: list[0] list[...]
* // deps: list[0] list[...]
* ```
*/
arrIndexDep?: boolean;
Expand Down

0 comments on commit 06932b0

Please sign in to comment.