Skip to content
Merged
Show file tree
Hide file tree
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: 3 additions & 1 deletion dumi/docs/concepts/state/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export interface IState<V> {
validate(): Promise<ValidateResult<V>>
/** Configure when state should be disabled. */
disableWhen(predictFn: () => boolean): this
/** Do dispose. */
dispose(): void
}
```

Expand Down Expand Up @@ -92,7 +94,7 @@ That's why there's a boolean field `activated` for states.

States will not be auto-validated until it becomes **activated**. And they will become (and stay) activated if one of these happens:

1. Value changed by user interactions (method `onChange()` is called).
1. Value changed by user interactions (method `onChange()` is called).
2. State imperatively validated (method `validate()` is called).

### Own Error
Expand Down
Loading